/* Base Custom Properties */
:root {
    --color-primary: #00a2b9; /* Turquesa/Teal principal */
    --color-primary-dark: #008497;
    --color-secondary: #f35d10; /* Naranja de acento / sombra */
    --color-secondary-dark: #d54e0a;
    --color-light: #FFFFFF;
    --color-bone: #fff8f0; /* Fondo crema/cálido */
    --color-dark: #11333c; /* Verde/Azul muy oscuro para secciones oscuras */
    --color-text: #2f454a; /* Color de texto legible */
    --color-text-muted: #57757d;
    --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;
    background-color: var(--color-light);
}

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: 7rem 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: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    border: 2px solid transparent;
}

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

.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-accent {
    background-color: var(--color-secondary);
    color: #fff;
}
.btn-accent:hover {
    background-color: var(--color-secondary-dark);
    color: #fff;
}

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

.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);
}

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

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

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

/* Typography Logo matching restaurant mural */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 
        1px 1px 0px var(--color-secondary),
        2px 2px 0px var(--color-secondary),
        3px 3px 0px var(--color-secondary);
    padding: 4px 10px;
    background-color: var(--color-primary);
    border-radius: 4px;
    display: inline-block;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 3px;
    padding-left: 2px;
}

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

.nav-links a {
    color: var(--color-dark);
}

.nav-links a:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .nav-links { gap: 1rem; }
    .nav-links a:not(.btn) { display: none; }
    .btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
    .logo-main { font-size: 1.2rem; padding: 3px 6px; }
    .logo-sub { font-size: 0.6rem; letter-spacing: 1px; }
}

/* 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 20s 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; }

@keyframes fadeSlide {
    0% { opacity: 0; transform: scale(1); }
    8% { opacity: 1; transform: scale(1.02); }
    25% { opacity: 1; transform: scale(1.03); }
    33% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 162, 185, 0.75), rgba(17, 51, 60, 0.85));
    z-index: 1;
}

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

#hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

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

@media (max-width: 768px) {
    #hero { padding: 10rem 0 12rem; }
    #hero h1 { font-size: 2.4rem; }
    #hero p { font-size: 1.1rem; }
}

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

.section-title h2 { 
    font-size: 2.6rem; 
    color: var(--color-primary); 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
}

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

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

.service-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(0,162,185,0.12);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

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

/* Promo Card customized style */
.promo-grid {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.promo-card {
    background: linear-gradient(135deg, #fffcf9, #fff3e3);
    border: 1px solid rgba(243, 93, 16, 0.2);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    max-width: 750px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(243, 93, 16, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(243, 93, 16, 0.12);
}

.promo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.promo-badge {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-light);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(243, 93, 16, 0.25);
}

.promo-card h3 {
    color: var(--color-dark);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.promo-card p {
    font-size: 1.15rem;
    color: var(--color-text);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Mariscos Food Gallery (Premium Compact Layout) */
.food-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.food-gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    aspect-ratio: 4/3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.food-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.food-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,162,185,0.15);
}

.food-gallery-item:hover img {
    transform: scale(1.04);
}

/* Food detail text cards */
.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.05);
    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,162,185,0.1);
}

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

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

.desayuno-card h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

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

@media (max-width: 900px) {
    .food-gallery { grid-template-columns: repeat(2, 1fr); }
    .desayuno-cards { grid-template-columns: repeat(2, 1fr); }
}

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

/* Parrilla Layout (Comida template) */
.comida-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}

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

.comida-text-card h3 {
    color: var(--color-primary);
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    border-left: 4px solid var(--color-secondary);
    padding-left: 10px;
}

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

.comida-text-card p:last-of-type {
    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 img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.comida-photos-top img { height: 200px; }
.comida-photos-mid img { height: 140px; }

.comida-photos img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(243,93,16,0.18);
}

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

@media (max-width: 600px) {
    .comida-photos-mid { grid-template-columns: 1fr 1fr; }
    .comida-photos-mid img:last-child { display: none; }
    .comida-photos-top img { height: 150px; }
    .comida-photos-mid img { height: 120px; }
}

/* History / Family Flex (Beneficios template) */
.benefits-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.benefits-text { flex: 1.1; }
.benefits-graphics { flex: 0.9; }

.benefits-text h2 {
    color: var(--color-primary);
    text-transform: uppercase;
}

.benefit-list {
    list-style: none;
    margin-top: 1.8rem;
    margin-bottom: 2.2rem;
}

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

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

.family-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(17,51,60,0.15);
}

.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); }
    8% { opacity: 1; transform: scale(1.02); }
    33% { opacity: 1; transform: scale(1.03); }
    41% { opacity: 0; }
    100% { opacity: 0; }
}

@media (max-width: 768px) {
    .benefits-flex { flex-direction: column; gap: 2.5rem; }
    .benefits-text, .benefits-graphics { width: 100%; }
}

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

.contact-info {
    background: var(--color-light);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-info h3 {
    color: var(--color-primary);
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid var(--color-bone);
    padding-bottom: 8px;
}

.contact-info p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.contact-info p strong {
    color: var(--color-dark);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    font-weight: 700;
    color: var(--color-secondary);
    background-color: var(--color-bone);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.95rem;
}

.social-links a:hover {
    background-color: var(--color-secondary);
    color: #fff;
}

.contact-map iframe {
    box-shadow: 0 10px 30px rgba(17,51,60,0.1);
}

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

/* Footer */
.footer {
    padding: 3rem 0;
}
.footer p {
    font-size: 0.95rem;
    margin-bottom: 0;
}
.footer a { color: var(--color-light); text-decoration: underline; font-weight: 700; }
.footer a:hover { color: var(--color-secondary); }

/* 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: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

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

/* Ensure sections have relative positioning for dividers */
#hero, #promociones, #menu-servicios, #mariscos, #parrilla, #historia, #contacto { 
    position: relative; 
    padding-bottom: 7rem; 
}

.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: 80px;
}

.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); }
