:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --space-color: #7b6fd6;
    --text-dark: #2f2f2f;
    --text-muted: #666;
    --radius-lg: 18px;
    --shadow-soft: 0 6px 18px rgba(0,0,0,0.08);
    --shadow-hover: 0 14px 30px rgba(0,0,0,0.14);
    --shadow-glow: 0 16px 34px rgba(255,107,107,0.28);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
    width: 100%;
}

body.nav-open {
    overflow: hidden;
}

body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 900;
}

body.nav-open .whatsapp-float,
body.nav-open .back-to-top {
    opacity: 0;
    pointer-events: none;
}

h1, h2, h3, .brand-name {
    font-family: 'Fredoka', 'Poppins', sans-serif;
}

img {
    max-width: 100%;
}

::selection {
    background: var(--primary-color);
    color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===== SCROLL REVEAL ===== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== SCROLL PROGRESS + BACK TO TOP ===== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    z-index: 2000;
    transition: width 0.1s ease-out;
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--text-dark);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, visibility 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
}

header {
    background: white;
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 5000;
    transition: box-shadow 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    padding: 0.6rem 5%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.logo-container {
    min-width: 0;
}

.brand-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: var(--text-dark);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1rem);
        left: 0;
        right: 0;
        z-index: 10;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: white;
        border-radius: 12px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.15);
        max-height: 0;
        overflow: hidden auto;
        transition: max-height 0.35s ease;
    }

    .nav-links.open {
        max-height: min(70vh, 500px);
        padding: 10px 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 14px 20px;
    }

    .nav-links li a:not(.btn-reserva)::after {
        display: none;
    }
}

@media (max-width: 380px) {
    .brand-name {
        max-width: 90px;
    }
}

.dropdown {
    position: relative;
}

.dropdown ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
}

.dropdown ul li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

.dropdown ul li a:hover {
    background: #f0f0f0;
}

.dropdown:hover ul {
    display: block;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    font-weight: 600;
    position: relative;
    transition: color 0.25s ease;
}

.nav-links li a:not(.btn-reserva)::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
    transition: left 0.25s var(--ease), right 0.25s var(--ease);
}

.nav-links li a:not(.btn-reserva):hover,
.nav-links li a.active-link:not(.btn-reserva) {
    color: var(--primary-color);
}

.nav-links li a:not(.btn-reserva):hover::after,
.nav-links li a.active-link:not(.btn-reserva)::after {
    left: 8px;
    right: 8px;
}

.btn-reserva {
    background: var(--primary-color);
    color: white !important;
    border-radius: 20px;
    display: inline-block;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 6px 16px rgba(255,107,107,0.35);
}

.btn-reserva:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 22px rgba(255,107,107,0.45);
}

.logo-container .nav-logo {
    transition: transform 0.4s var(--ease);
}

.logo-container:hover .nav-logo {
    transform: rotate(-12deg) scale(1.12);
}

.section {
    padding: 70px 7%;
    text-align: center;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section > p,
.section-lead {
    max-width: 700px;
    margin: 0 auto 12px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section:not(.inner-page) h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 14px;
    display: inline-block;
}

.section:not(.inner-page) h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 4px;
    background: var(--primary-color);
    transition: width 0.4s var(--ease);
}

.section:not(.inner-page) h2:hover::after {
    width: 110px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 36px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: #fff;
    padding: 30px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.6s ease, border-color 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--secondary-color);
}

.card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transition: transform 0.35s var(--ease);
}

.card:hover .icon {
    transform: scale(1.15) rotate(-8deg);
}

.card h3 {
    margin: 6px 0 10px;
    font-size: 1.15rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 12px;
}

.card a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.beneficios-bg {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.beneficios-bg h2,
.beneficios-bg .section-lead {
    color: #fff;
}

.beneficios-bg h2::after {
    background: #fff;
}

.overlay-content {
    max-width: 900px;
    margin: 0 auto;
}

.benefit-list {
    list-style: none;
    margin: 36px auto 0;
    padding: 0;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.benefit-list li {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 18px 20px;
    border-radius: 14px;
    font-weight: 600;
    text-align: left;
}

.dark-bg {
    background: var(--text-dark);
    color: #fff;
}

.dark-bg h2 {
    color: #fff;
}

.dark-bg h2::after {
    background: var(--accent-color);
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1100px;
    margin: 36px auto 0;
    text-align: left;
    justify-content: center;
}

.contact-info {
    flex: 1 1 280px;
}

.contact-info p {
    margin: 8px 0;
}

.horarios {
    margin-top: 22px;
}

.horarios h3 {
    color: var(--accent-color);
    margin-bottom: 8px;
}

.form-container {
    flex: 1 1 320px;
}

.form-container .btn-submit {
    width: 100%;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.purple-gradient {
    background: linear-gradient(135deg, #7b6fd6, #a78bfa);
}

.purple-gradient h2::after {
    background: #fff;
}

.purple-gradient > p {
    color: #fff;
}

.purple-gradient table {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.purple-gradient td {
    color: var(--text-dark);
}

.white-text {
    color: #fff;
}

.social-responsibility {
    max-width: 800px;
    margin: 30px auto 0;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 24px;
    border-radius: 16px;
}

.social-responsibility h3 {
    margin-top: 0;
    color: var(--accent-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    background: var(--secondary-color);
    color: white;
    padding: 15px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    transition: background 0.2s ease;
}

tbody tr:hover td {
    background: rgba(78,205,196,0.1);
}

#reserva-form,
#contacto-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.dark-bg #reserva-form {
    box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}

input, select, textarea, .btn-submit {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 90px;
}

.btn-submit {
    background: var(--secondary-color);
    color: white;
    cursor: pointer;
    font-weight: bold;
    border: none;
    transition: background 0.2s ease;
}

.btn-submit:hover {
    background: var(--primary-color);
}


.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.brand-name {
    font-size: 20px;
    font-weight: bold;
}


.hero{
    position: relative;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

.carousel{
    position: absolute;
    width: 100%;
    height: 100%;
}

.carousel-bg{
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.65) saturate(1.15);
    transform: scale(1.2);
    z-index: 0;
}

.hero .carousel-bg {
    height: 70%;
}

.carousel-img{
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;

    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero .carousel-img {
    height: 70%;
}

.carousel-img.active{
    opacity: 1;
}

.hero-content{
    position: relative;
    z-index: 3;

    width: 100%;
    height: 70%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;
    padding: 0 24px;

    background: rgba(0,0,0,0.45);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-img{
    width: 120px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s var(--ease) both, float 4s ease-in-out 0.8s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1{
    font-size: 3.5rem;
    font-weight: 800;
    max-width: 900px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    animation: fadeInUp 0.8s var(--ease) 0.15s both;
}

.hero p{
    font-size: 1.3rem;
    margin: 15px 0;
    max-width: 600px;
    animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

.btn-main{
    background: #ff5ea8;
    padding: 14px 60px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 10px 24px rgba(255,94,168,0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s var(--ease) 0.45s both;
}

.btn-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: rgba(255,255,255,0.35);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn-main:hover::before {
    left: 130%;
}

.btn-main:hover{
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 28px rgba(255,94,168,0.55);
}

@media (max-width: 700px) {
    .hero-img{ width: 90px; }
    .hero h1{ font-size: 2.1rem; }
    .hero p{ font-size: 1.05rem; }
    .btn-main{ padding: 12px 40px; }
    .section:not(.inner-page) h2{ font-size: 1.7rem; }
    .flex-container{ text-align: center; }
    .contact-info, .form-container{ margin: 0 auto; }
}

/* ===== FOOTER NUEVO ===== */

footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 7% 0;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--accent-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #ddd;
}

.footer-col a {
    color: #ddd;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-bottom {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0;
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    z-index: 9999;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    display: block;
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(78,205,196,0.55);
    animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(78,205,196,0.55); }
    70% { box-shadow: 0 0 0 16px rgba(78,205,196,0); }
    100% { box-shadow: 0 0 0 0 rgba(78,205,196,0); }
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.page-hero {
    position: relative;
    height: 48vh;
    min-height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.page-hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    background: rgba(0,0,0,0.48);
}

.page-hero-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s var(--ease) both;
}

.page-hero-content h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 4px;
    background: var(--accent-color);
}

.page-hero-content p {
    max-width: 640px;
    font-size: 1.05rem;
    margin-top: 14px;
    animation: fadeInUp 0.8s var(--ease) 0.15s both;
}

@media (max-width: 700px) {
    .page-hero {
        height: 40vh;
        min-height: 260px;
    }
    .page-hero-content h2 {
        font-size: 1.8rem;
    }
}

