/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.16), 0 8px 20px rgba(15, 23, 42, 0.08);

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate-800);
    background: #ffffff;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--slate-900);
}

.header__logo-mark {
    width: 38px;
    height: 38px;
    background: var(--teal-600);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.02em;
}

.header__logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header__nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-600);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.header__nav-link:hover {
    color: var(--teal-700);
    background: var(--teal-50);
}

.header__nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    margin-left: 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: var(--teal-600);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.header__nav-cta:hover {
    background: var(--teal-700);
    transform: translateY(-1px);
}

.header__menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--slate-700);
    transition: background var(--transition-fast);
}

.header__menu-btn:hover {
    background: var(--slate-100);
}

/* ===== MOBILE NAV ===== */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-overlay ~ .header .header__nav {
    /* handled via JS */
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn--primary {
    background: var(--teal-600);
    color: white;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.btn--primary:hover {
    background: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--slate-700);
    border: 1.5px solid var(--slate-300);
}

.btn--outline:hover {
    border-color: var(--teal-600);
    color: var(--teal-700);
    background: var(--teal-50);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--slate-50) 0%, #ffffff 50%, var(--teal-50) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 16px;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--slate-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero__title-accent {
    color: var(--teal-600);
}

.hero__description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--slate-600);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-600);
}

.hero__trust-item svg {
    color: var(--teal-600);
    flex-shrink: 0;
}

.hero__image {
    position: relative;
}

.hero__image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/7;
}

.hero__image-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-800);
    box-shadow: var(--shadow-md);
}

.hero__image-badge svg {
    color: var(--teal-600);
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--slate-400);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header--center {
    text-align: center;
}

.section-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--slate-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--slate-500);
    max-width: 520px;
}

.section-header--center .section-description {
    margin: 0 auto;
}

.text-teal {
    color: var(--teal-600);
}

/* ===== NOSOTROS ===== */
.nosotros {
    background: #ffffff;
}

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

.nosotros__image-col {
    position: relative;
}

.nosotros__image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.nosotros__image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.nosotros__image-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}

.nosotros__image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 7/5;
}

.nosotros__content .section-description {
    margin-bottom: 20px;
}

.nosotros__features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
}

.feature-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--slate-50);
    border-radius: var(--radius-md);
    transition: background var(--transition-base), transform var(--transition-base);
}

.feature-card:hover {
    background: var(--teal-50);
    transform: translateX(4px);
}

.feature-card__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-600);
    color: white;
    border-radius: var(--radius-sm);
}

.feature-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.feature-card__text {
    font-size: 14px;
    color: var(--slate-500);
    line-height: 1.5;
}

/* ===== PRODUCTOS ===== */
.productos {
    background: var(--slate-50);
}

.productos__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.producto-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.producto-card__img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.producto-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.producto-card:hover .producto-card__img img {
    transform: scale(1.05);
}

.producto-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 148, 136, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.producto-card:hover .producto-card__overlay {
    opacity: 1;
}

.producto-card__overlay svg {
    color: white;
}

.producto-card__body {
    padding: 24px;
}

.producto-card__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 8px;
}

.producto-card__text {
    font-size: 14px;
    color: var(--slate-500);
    line-height: 1.6;
}

/* ===== CONTACTO ===== */
.contacto {
    background: #ffffff;
}

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

.contacto__detail {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--slate-200);
}

.contacto__detail:first-child {
    padding-top: 0;
}

.contacto__detail:last-child {
    border-bottom: none;
}

.contacto__detail-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-50);
    color: var(--teal-600);
    border-radius: var(--radius-sm);
}

.contacto__detail-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.contacto__detail-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--slate-800);
    line-height: 1.5;
}

.contacto__link {
    color: var(--teal-600);
    transition: color var(--transition-fast);
}

.contacto__link:hover {
    color: var(--teal-700);
    text-decoration: underline;
}

/* ===== FORM ===== */
.contacto__form {
    background: var(--slate-50);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
}

.contacto__form-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 6px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--slate-800);
    background: white;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--slate-400);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--teal-800);
}

.form-success svg {
    color: var(--teal-600);
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 60px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--slate-800);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__brand .header__logo-mark {
    width: 44px;
    height: 44px;
    font-size: 15px;
}

.footer__name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.footer__tagline {
    font-size: 14px;
    color: var(--slate-500);
    margin-top: 4px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    font-size: 14px;
    color: var(--slate-400);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--teal-400);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.footer__bottom {
    padding: 20px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 13px;
    color: var(--slate-600);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero__container {
        gap: 40px;
    }

    .nosotros__grid {
        gap: 40px;
    }

    .contacto__grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 88px 24px 24px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
        z-index: 101;
        gap: 0;
    }

    .header__nav.open {
        right: 0;
    }

    .header__nav-list {
        flex-direction: column;
        gap: 0;
    }

    .header__nav-link {
        padding: 14px 16px;
        font-size: 15px;
        border-bottom: 1px solid var(--slate-100);
    }

    .header__nav-cta {
        margin-left: 0;
        margin-top: 16px;
        justify-content: center;
        padding: 14px;
    }

    .header__menu-btn {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__image {
        order: -1;
    }

    .hero__image-wrapper {
        aspect-ratio: 4/3;
    }

    .hero__trust {
        gap: 20px;
    }

    .section {
        padding: 72px 0;
    }

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

    .nosotros__image-col {
        order: -1;
    }

    .nosotros__image-secondary {
        right: 0;
        bottom: -24px;
    }

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

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

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        justify-content: center;
    }

    .contacto__form {
        padding: 24px;
    }
}

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
