/* Base Custom Properties */
:root {
    --color-primary: #2E7D32; /* Green from logo */
    --color-primary-dark: #1B5E20;
    --color-light: #FFFFFF;
    --color-bone: #FFF3E0; /* Light warm background */
    --color-dark: #222222;
    --color-text: #444444;
    --color-whatsapp: #25D366;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.section-padding { padding: 5rem 0; }

/* Backgrounds */
.bg-light { background-color: var(--color-light); }
.bg-bone { background-color: var(--color-bone); }
.bg-primary { background-color: var(--color-primary); }
.bg-dark { background-color: var(--color-dark); }
.text-light { color: var(--color-light) !important; }
.text-light h1, .text-light h2, .text-light h3, .text-light p { color: var(--color-light); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.95rem; }
.btn-lg { padding: 1rem 2.4rem; font-size: 1.15rem; }

.btn-primary {
    background-color: var(--color-whatsapp);
    color: #fff;
}
.btn-primary:hover {
    background-color: #1ea951;
    color: #fff;
}

.btn-light {
    background-color: var(--color-light);
    color: var(--color-primary);
}
.btn-light:hover {
    background-color: #f1f1f1;
}

.btn-outline-light {
    background-color: transparent;
    border-color: var(--color-light);
    color: var(--color-light);
}
.btn-outline-light:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--color-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo img {
    height: 130px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .nav-links { gap: 1rem; }
    .btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
}

/* Hero Section */
#hero {
    position: relative;
    padding: 16rem 0 18rem;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide 25s infinite;
}

.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: 5s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: 10s; }
.hero-slideshow .slide:nth-child(4) { animation-delay: 15s; }
.hero-slideshow .slide:nth-child(5) { animation-delay: 20s; }

@keyframes fadeSlide {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; transform: scale(1.02); }
    20% { opacity: 1; transform: scale(1.04); }
    30% { opacity: 0; transform: scale(1.06); }
    100% { opacity: 0; transform: scale(1.06); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46,125,50,0.65), rgba(76,175,80,0.55));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    #hero h1 { font-size: 2.5rem; }
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 { font-size: 2.5rem; color: var(--color-primary); }

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-light);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    border-bottom: 4px solid var(--color-primary);
    transition: transform 0.3s;
}

.service-card:hover { transform: translateY(-5px); }

/* Benefits Flex */
.benefits-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.benefits-text { flex: 1; }
.benefits-graphics { flex: 1; }

.benefit-list {
    list-style: none;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.benefit-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.benefit-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.family-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(46,125,50,0.1);
}

.family-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide3 15s infinite;
}

.family-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.family-slideshow .slide:nth-child(2) { animation-delay: 5s; }
.family-slideshow .slide:nth-child(3) { animation-delay: 10s; }

@keyframes fadeSlide3 {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; transform: scale(1.02); }
    25% { opacity: 1; transform: scale(1.04); }
    35% { opacity: 0; transform: scale(1.06); }
    100% { opacity: 0; transform: scale(1.06); }
}

@media (max-width: 768px) {
    .benefits-flex { flex-direction: column; }
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    background: var(--color-bone);
    padding: 3rem;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-info { padding: 2rem; }
}

/* Footer */
.footer {
    padding: 2rem 0;
}
.footer a { color: var(--color-light); text-decoration: underline; }
.footer a:hover { color: #f1f1f1; }

/* CUSTOM SHAPE DIVIDERS */
.custom-shape-divider-bottom-hero,
.custom-shape-divider-bottom-light,
.custom-shape-divider-bottom-bone,
.custom-shape-divider-bottom-bone-to-light,
.custom-shape-divider-bottom-light-to-dark {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.custom-shape-divider-bottom-light-to-dark {
    transform: rotate(180deg);
}

/* No extra transform needed — base rule already handles rotation. */

/* Ensure sections have relative positioning for dividers */
#hero, #menu-servicios, #desayunos, #comida, #beneficios, #contacto { position: relative; padding-bottom: 8rem; }

.custom-shape-divider-bottom-hero svg,
.custom-shape-divider-bottom-light svg,
.custom-shape-divider-bottom-bone svg,
.custom-shape-divider-bottom-bone-to-light svg,
.custom-shape-divider-bottom-light-to-dark svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.custom-shape-divider-bottom-hero .shape-fill { fill: var(--color-light); }
.custom-shape-divider-bottom-light .shape-fill { fill: var(--color-bone); }
.custom-shape-divider-bottom-bone .shape-fill { fill: var(--color-light); }
.custom-shape-divider-bottom-bone-to-light .shape-fill { fill: var(--color-light); }
.custom-shape-divider-bottom-light-to-dark .shape-fill { fill: var(--color-primary); }

/* ===================== */
/* FOOD SECTIONS         */
/* ===================== */

/* Desayunos: gallery + cards */
.desayuno-gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.75rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    margin-bottom: 2.5rem;
}

.desayuno-gallery-main img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.desayuno-gallery-main:hover img { transform: scale(1.03); }

.desayuno-gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.desayuno-gallery-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.desayuno-gallery-side img:hover { transform: scale(1.04); }

/* Info cards — no photos, pure text */
.desayuno-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.desayuno-card {
    background: var(--color-light);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    border-top: 4px solid var(--color-bone);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.desayuno-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.desayuno-card--featured {
    border-top-color: var(--color-primary);
    background: var(--color-bone);
}

.desayuno-card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.desayuno-card h4 {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.desayuno-card p {
    font-size: 0.92rem;
    color: var(--color-text);
    margin-bottom: 0;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .desayuno-gallery { grid-template-columns: 1fr; }
    .desayuno-gallery-main img { min-height: 260px; }
    .desayuno-gallery-side { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
    .desayuno-gallery-side img { height: 140px; }
    .desayuno-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .desayuno-cards { grid-template-columns: 1fr 1fr; }
}


/* Comida: text card + photo mosaic */
.comida-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}

.comida-text-card {
    background: var(--color-bone);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.comida-text-card h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.comida-text-card p {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0;
}

.comida-photos {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comida-photos-top,
.comida-photos-mid {
    display: grid;
    gap: 0.75rem;
}

.comida-photos-top {
    grid-template-columns: 1fr 1fr;
}

.comida-photos-mid {
    grid-template-columns: 1fr 1fr 1fr;
}

.comida-photos-bottom {
    width: 100%;
}

.comida-photos img,
.comida-photos-bottom img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.comida-photos-top img { height: 180px; }
.comida-photos-mid img { height: 130px; }
.comida-photos-bottom img { height: 160px; }

.comida-photos img:hover,
.comida-photos-bottom img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(46,125,50,0.2);
}

@media (max-width: 900px) {
    .comida-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .comida-photos-mid { grid-template-columns: 1fr 1fr; }
    .comida-photos-top img { height: 140px; }
    .comida-photos-mid img { height: 110px; }
}
