/* RESET Y VARIABLES */
:root {
    --color-primary: #0D3B2E;
    --color-accent: #FF6B35;
    --color-light: #FFF5E1;
    --color-text: #1B1B1B;
    --color-button: #008C8C;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* TIPOGRAFÍA */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--color-button);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* BOTONES */
.btn-primary, 
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.elem {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--color-button);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-button);
    color: var(--color-button);
}

.btn-secondary:hover {
    background-color: var(--color-button);
    color: white;
}

/* HEADER Y NAVEGACIÓN */
header {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

nav ul.desktop-menu {
    display: flex;
    list-style: none;
}

nav ul.desktop-menu li {
    margin-left: 2rem;
}

nav ul.desktop-menu a {
    color: white;
    text-decoration: none;
}

nav ul.desktop-menu a:hover {
    color: var(--color-accent);
}

/* MENÚ MÓVIL */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

.menu-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    padding: 5px;
    width: 40px;
    position: relative;
    z-index: 1001;
}

.menu-toggle-btn .bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 2px 0;
}

.menu-toggle-btn.abierto .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle-btn.abierto .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle-btn.abierto .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    background-color: var(--color-primary);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 0;
}

.mobile-nav.abierto {
    display: block;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    padding: 0.8rem 2rem;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    display: block;
    font-size: 1.2rem;
}

/* HERO SECTION */
.hero {
    background-color: var(--color-primary);
    color: white;
    padding: 8rem 0 5rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* SECCIONES GENERALES */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: white;
}

/* SOBRE NOSOTROS */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* SERVICIOS */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

/* VENTAJAS */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.benefit-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

/* PROCESO */
.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    background-color: var(--color-accent);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-primary);
    font-weight: 700;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

/* TESTIMONIOS */
.testimonials {
    background-color: var(--color-primary);
    color: white;
}

.testimonials h2 {
    color: white;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
}

.testimonial-item {
    min-width: 300px;
    scroll-snap-align: start;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author h4 {
    margin-bottom: 0.3rem;
}

/* CONTACTO */
.contact-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    padding: 1.5rem;
    border-radius: 8px;
    background: linear-gradient(to bottom right, var(--color-primary) 0%, var(--color-button) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-intro {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.contact-info a {
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--color-accent);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 30px;
    height: 30px;
    margin-right: 1rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

.location-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FF6B35' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}

.phone-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FF6B35' viewBox='0 0 24 24'%3E%3Cpath d='M20 15.5c-1.25 0-2.45-.2-3.57-.57a1.02 1.02 0 0 0-1.02.24l-2.2 2.2a15.045 15.045 0 0 1-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1A11.36 11.36 0 0 1 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM5.03 5h1.5c.07.88.22 1.75.45 2.58l-1.2 1.21c-.4-1.21-.66-2.47-.75-3.79zM19 18.97c-1.32-.09-2.6-.35-3.8-.76l1.2-1.2c.85.24 1.72.39 2.6.45v1.51z'/%3E%3C/svg%3E");
}

.email-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FF6B35' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.contact-text {
    flex: 1;
}

.contact-form {
    flex: 1;
    max-width: 450px;
}

form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--color-accent);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-secondary);
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-button);
    box-shadow: 0 0 0 2px rgba(0, 140, 140, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: white;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin-bottom: 0;
    flex: 1;
}

.faq-toggle, .faq-toggle-btn {
    font-size: 1.5rem;
    color: var(--color-button);
    background: none;
    border: none;
    cursor: pointer;
}

.faq-toggle-form {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.abierto {
    padding: 1.5rem;
    max-height: 500px;
}

/* COOKIE POPUP */
.cookie-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    color: white;
    padding: 1rem;
    z-index: 1001;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-popup.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

/* FOOTER */
footer {
    background-color: var(--color-primary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: white;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* PÁGINA DE GRACIAS */
.thanks-page {
    padding: 8rem 0 5rem;
    text-align: center;
}

.thanks-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.thanks-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* PÁGINAS LEGALES */
.legal-page {
    padding: 8rem 0 5rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.legal-content h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.legal-content h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-top: 2rem;
}

/* MEDIA QUERIES */
@media (max-width: 1023px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    /* Menú móvil */
    nav ul.desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
        opacity: 0;
    }
    
    /* Layout */
    .about-content {
        flex-direction: column;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
