:root {
    --primary: #5B7B6F;
    --primary-dark: #4A655B;
    --primary-light: #7A9E8F;
    --accent: #C9A88E;
    --accent-light: #E8D5C4;
    --bg: #FBF8F5;
    --bg-alt: #F5F0EB;
    --bg-card: #ffffff;
    --text: #2C2C2C;
    --text-light: #6B6B6B;
    --text-muted: #9A9A9A;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(91, 123, 111, 0.12);
    --shadow-hover: 0 20px 50px rgba(91, 123, 111, 0.2);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: 0.35s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

section {
    padding: 110px 0;
}

.section {
    padding: 110px 0;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* HEADER */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: var(--transition);
}

#header.scrolled {
    background: rgba(251, 248, 245, 0.95);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 30px rgba(91, 123, 111, 0.1);
}

.nav-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo i {
    font-size: 28px;
    color: var(--primary);
}

#navbar ul {
    display: flex;
    gap: 35px;
}

#navbar a {
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    color: var(--text);
}

#navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

#navbar a:hover {
    color: var(--primary);
}

#navbar a:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 12px 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(91, 123, 111, 0.35);
}

/* HAMBURGUESA */
#menu-btn {
    display: none;
    width: 36px;
    cursor: pointer;
    z-index: 9999;
}

#menu-btn span {
    display: block;
    height: 3px;
    background: var(--text);
    margin: 6px 0;
    border-radius: 20px;
    transition: var(--transition);
}

#menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* MENU MOBILE */
#mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    z-index: 998;
}

#mobile-menu.active {
    right: 0;
}

#mobile-menu ul {
    text-align: center;
}

#mobile-menu li {
    margin: 25px 0;
}

#mobile-menu a {
    font-size: 24px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

#mobile-menu a:hover {
    color: var(--primary);
}

.mobile-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white) !important;
    padding: 14px 35px;
    border-radius: 40px;
    margin-top: 10px;
}

/* HERO */
#inicio {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg) 0%, var(--accent-light) 50%, var(--bg) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(91, 123, 111, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text {
    max-width: 700px;
}

.hero-content p {
    margin-left: auto;
    margin-right: auto;
}

.hero-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 35px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition) ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(91, 123, 111, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(91, 123, 111, 0.4);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
}

.hero-image {
    flex-shrink: 0;
}



.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.hero-scroll a {
    display: flex;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--primary);
    color: var(--primary);
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.hero-scroll a:hover {
    background: var(--primary);
    color: var(--white);
}

.hero-scroll i {
    font-size: 18px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* SECTION TITLE */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span,
.section-tag {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 13px;
    text-transform: uppercase;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    margin: 12px 0;
    line-height: 1.3;
}

.section-title p {
    color: var(--text-light);
    max-width: 650px;
    margin: auto;
    font-size: 16px;
}

/* SOBRE MI */
#sobre-mi {
    background: var(--bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    overflow: hidden;
    border-radius: var(--radius);
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 100px;
    color: var(--white);
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 18px;
    font-size: 15px;
}

.about-features {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.feature {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    border: 1px solid rgba(91, 123, 111, 0.1);
}

.feature:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature i {
    color: var(--primary);
    font-size: 18px;
}

.feature span {
    font-size: 14px;
    font-weight: 500;
}

/* PROCESO / TIMELINE */
.process {
    background: var(--white);
}

.timeline {
    max-width: 800px;
    margin: auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-light), var(--accent));
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(91, 123, 111, 0.25);
}

.timeline-content {
    padding-top: 15px;
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.timeline-content p {
    color: var(--text-light);
    font-size: 15px;
}

/* MODALIDADES */
.services {
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: auto;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(91, 123, 111, 0.08);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.service-image {
    padding: 0;
    display: flex;
    justify-content: center;
    height: 320px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius) var(--radius) 0 0;
}

.service-icon-bg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: var(--white);
}

.service-content {
    padding: 25px 30px 35px;
    text-align: center;
}

.service-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.service-content p {
    color: var(--text-light);
    font-size: 14px;
}

/* BENEFICIOS */
.benefits {
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.benefit-item {
    background: var(--bg-alt);
    padding: 35px 25px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.benefit-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.benefit-item i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 18px;
}

.benefit-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.benefit-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* QUOTE */
.quote-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    text-align: center;
    padding: 90px 0;
}

.quote-section blockquote {
    max-width: 700px;
    margin: auto;
}

.quote-section i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 25px;
    display: block;
}

.quote-section p {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--white);
    margin-bottom: 20px;
}

.quote-section span {
    color: var(--accent-light);
    font-size: 16px;
    font-weight: 500;
}

/* FAQ */
#faq {
    background: var(--bg-alt);
}

.accordion {
    max-width: 800px;
    margin: auto;
}

.accordion-item {
    background: var(--bg-card);
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(91, 123, 111, 0.08);
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: var(--primary-light);
}

.accordion-header {
    width: 100%;
    border: none;
    background: none;
    color: var(--text);
    padding: 22px 28px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

.accordion-header i {
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 15px;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: 0.35s;
}

.accordion-body p {
    padding: 0 28px 22px;
    color: var(--text-light);
    font-size: 15px;
}

.accordion-item.active .accordion-body {
    max-height: 350px;
}

.accordion-item.active i {
    transform: rotate(45deg);
}

/* CONTACTO */
#contacto {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary);
    margin-top: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 15px;
    margin-bottom: 3px;
    color: var(--text);
}

.contact-item a,
.contact-item p {
    color: var(--text-light);
    font-size: 14px;
}

.contact-item a:hover {
    color: var(--primary);
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(91, 123, 111, 0.15);
    background: var(--bg);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

#contactForm input:focus,
#contactForm textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 123, 111, 0.1);
}

#contactForm button {
    cursor: pointer;
    font-size: 15px;
    padding: 16px;
    border: none;
}

/* FOOTER */
footer {
    background: var(--text);
    padding: 70px 0 25px;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

footer .logo {
    color: var(--white);
    margin-bottom: 18px;
}

footer .logo i {
    color: var(--accent);
}

footer p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    margin-bottom: 10px;
}

footer h3 {
    margin-bottom: 18px;
    font-size: 16px;
    color: var(--white);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    color: var(--white);
    font-size: 18px;
}

.social a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.copyright {
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    font-size: 13px;
}

/* WHATSAPP FLOAT */
.whatsapp {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    z-index: 999;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
    animation: whatsappPulse 2.5s infinite;
    transition: var(--transition);
}

.whatsapp:hover {
    transform: scale(1.1);
}

@keyframes whatsappPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* VOLVER ARRIBA */
#toTop {
    position: fixed;
    left: 25px;
    bottom: 28px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(91, 123, 111, 0.3);
    z-index: 100;
}

#toTop.show {
    opacity: 1;
    visibility: visible;
}

#toTop:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* RESPONSIVE */
@media(max-width: 991px) {
    .hero-text {
        max-width: 100%;
    }

    .hero-content p {
        margin: 0 auto 35px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media(max-width: 768px) {
    #navbar,
    .btn-nav {
        display: none;
    }

    #menu-btn {
        display: block;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    section {
        padding: 70px 0;
    }

    .section {
        padding: 70px 0;
    }

    .timeline::before {
        left: 25px;
    }

    .timeline-number {
        width: 56px;
        height: 56px;
        font-size: 18px;
    }

    .timeline-item {
        gap: 25px;
    }

    .quote-section p {
        font-size: 1.3rem;
    }
}

@media(max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .whatsapp {
        width: 55px;
        height: 55px;
        font-size: 26px;
        right: 18px;
        bottom: 18px;
    }

    #toTop {
        width: 45px;
        height: 45px;
        font-size: 16px;
        left: 18px;
        bottom: 20px;
    }

}
