/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green-900: #1B4332;
    --green-800: #2D6A4F;
    --green-700: #40916C;
    --green-600: #52B788;
    --green-100: #D8F3DC;
    --green-50:  #EFF7F1;
    --cream:     #FDF8F0;
    --cream-dark:#F5EDE0;
    --white:     #FFFFFF;
    --text:      #1A2E23;
    --text-light:#4A6356;
    --gold:      #E9C46A;
    --gold-dark: #C9A84C;
    --shadow-sm: 0 2px 8px rgba(27,67,50,0.08);
    --shadow-md: 0 8px 30px rgba(27,67,50,0.12);
    --shadow-lg: 0 20px 60px rgba(27,67,50,0.15);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --font-body: 'Nunito', sans-serif;
    --font-display: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary {
    background: var(--green-800);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--green-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: var(--white);
    color: var(--green-800);
    border-color: var(--green-800);
}
.btn-secondary:hover {
    background: var(--green-50);
    transform: translateY(-2px);
}
.btn-white {
    background: var(--white);
    color: var(--green-800);
    box-shadow: var(--shadow-sm);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.35s ease;
}
.navbar.scrolled {
    background: rgba(253,248,240,0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--white);
    transition: color 0.3s;
}
.navbar.scrolled .logo { color: var(--green-800); }
.logo-icon { flex-shrink: 0; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links a {
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    transition: all 0.3s;
}
.navbar.scrolled .nav-links a { color: var(--text-light); }
.nav-links a:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}
.navbar.scrolled .nav-links a:hover {
    background: var(--green-100);
    color: var(--green-800);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}
.navbar.scrolled .menu-toggle span { background: var(--green-800); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 35%, #40916C 65%, #52B788 100%);
    overflow: hidden;
    padding: 120px 24px 80px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(233,196,106,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(82,183,136,0.2) 0%, transparent 60%);
}
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: var(--white);
}
.shape-1 { width: 400px; height: 400px; top: -100px; right: -80px; animation: float 8s ease-in-out infinite; }
.shape-2 { width: 200px; height: 200px; bottom: 10%; left: 5%; animation: float 6s ease-in-out infinite reverse; }
.shape-3 { width: 120px; height: 120px; top: 30%; left: 10%; animation: float 7s ease-in-out infinite; }
.shape-4 { width: 80px; height: 80px; bottom: 25%; right: 12%; animation: float 5s ease-in-out infinite reverse; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--gold) 0%, #F4D03F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
}
.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    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 {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}
.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green-700);
    background: var(--green-100);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ── Productos ── */
.productos { background: var(--cream); }
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.card-prod {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}
.card-prod:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.card-prod:hover .card-img img { transform: scale(1.05); }
.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--green-800);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.card-body { padding: 24px 28px 28px; }
.card-body h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.card-body p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ── Nosotros ── */
.nosotros { background: var(--green-50); }
.nosotros-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.nosotros-images { position: relative; }
.img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 5/6;
}
.img-main img { width: 100%; height: 100%; object-fit: cover; }
.img-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--green-50);
    aspect-ratio: 4/3;
    width: 60%;
}
.img-secondary img { width: 100%; height: 100%; object-fit: cover; }
.nosotros-badge {
    position: absolute;
    top: -20px;
    right: -16px;
    background: var(--green-800);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}
.nosotros-content .section-tag { margin-bottom: 16px; }
.nosotros-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text);
}
.nosotros-content > p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 16px;
}
.nosotros-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.nosotros-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

/* ── Horario ── */
.horario { background: var(--cream); }
.horario-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.horario-left {
    padding: 56px 48px;
    background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.horario-left .section-tag {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}
.horario-left h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
}
.horario-left > p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 32px;
}
.horario-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold);
    transition: all 0.3s;
}
.horario-phone:hover { color: var(--gold-dark); transform: scale(1.02); }
.horario-right {
    padding: 56px 48px;
    display: flex;
    align-items: center;
}

.tabla-horario {
    width: 100%;
    border-collapse: collapse;
}
.tabla-horario th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--green-100);
}
.tabla-horario th:first-child,
.tabla-horario td:first-child { width: 45%; }
.tabla-horario td {
    padding: 14px 0;
    border-bottom: 1px solid var(--green-50);
    font-size: 0.95rem;
}
.tabla-horario td span {
    display: block;
}
.tabla-horario td:first-child span {
    font-weight: 700;
    color: var(--text);
}
.tabla-horario td:last-child span {
    color: var(--text-light);
}
.tabla-horario tr:last-child td { border-bottom: none; }
.tabla-horario tr.cerrado td span { color: var(--green-600); font-weight: 700; }

/* ── Contacto ── */
.contacto { background: var(--green-50); }
.contacto-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.contacto-info { display: flex; flex-direction: column; gap: 24px; }
.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.info-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: var(--green-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-800);
}
.info-item strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-800);
    margin-bottom: 4px;
}
.info-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}
.info-item a {
    color: var(--green-700);
    font-weight: 600;
    transition: color 0.3s;
}
.info-item a:hover { color: var(--green-800); }
.mapa-placeholder {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 8px;
}

.contacto-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.contacto-form h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.form-hint {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 28px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--green-100);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--cream);
    transition: all 0.3s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-600);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(82,183,136,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #A8BFAF;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    gap: 16px;
}
.form-success p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-800);
}
.form-success.show { display: flex; }
.contacto-form.hidden { display: none; }

/* ── CTA ── */
.cta {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
    overflow: hidden;
    text-align: center;
}
.cta-shapes { position: absolute; inset: 0; pointer-events: none; }
.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.cta-shape-1 { width: 500px; height: 500px; top: -200px; left: -150px; }
.cta-shape-2 { width: 300px; height: 300px; bottom: -100px; right: -50px; }
.cta-content { position: relative; z-index: 1; }
.cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}
.cta > .container > p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.8;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
    background: var(--green-900);
    color: rgba(255,255,255,0.7);
    padding: 72px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 56px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; max-width: 280px; }
.footer-links h4,
.footer-contact h4 {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }
.footer-contact ul { display: flex; flex-direction: column; gap: 14px; font-size: 0.88rem; line-height: 1.6; }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ── Animations ── */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 968px) {
    .nosotros-wrap,
    .horario-card,
    .contacto-wrap {
        grid-template-columns: 1fr;
    }
    .nosotros-images { max-width: 480px; margin: 0 auto; }
    .img-secondary { right: 0; }
    .horario-left { padding: 40px 32px; }
    .horario-right { padding: 40px 32px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--green-900);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        transition: right 0.4s ease;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.open { right: 0; }
    .nav-links a {
        font-size: 1.1rem;
        color: rgba(255,255,255,0.8);
        padding: 12px 24px;
    }
    .nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
    .hero { padding: 100px 20px 80px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
    .productos-grid { grid-template-columns: 1fr; }
    .contacto-form { padding: 28px 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 36px; }
    .section { padding: 72px 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.9rem; }
    .horario-left, .horario-right { padding: 32px 24px; }
}
