:root {
    --h2_size: 55px;
    --h3_size: 25px;
    --p_size: 20px;
    --btexto: #ffffff;
    --gtexto: #3d3d3d;
    --cuadros_fondo: #3a575fa8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(90deg,
            #8dc8c6 0%,
            #7CBDBA 45%,
            #5d99b8 100%);
}

.container {
    width: min(1200px, 90%);
    margin: auto;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    border-bottom: #01344e 1px solid;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 0;
    height: 120px;
}

.logo img {
    height: 100px;
    width: auto;
    border-radius: 100px;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav a {
    color: var(--btexto);
    text-decoration: none;
    font-size: .9rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

section {
    scroll-margin-top: 120px;
}

/* INICIO (HERO) */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            #8dc8c6 0%,
            #7CBDBA 45%,
            #5d99b8 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--btexto);
    width: min(1400px, 95%);
    max-width: none;
    padding: 0 20px;
    margin-top: 120px;
}

.hero-tag {
    letter-spacing: .25em;
    text-transform: uppercase;
    font-size: .8rem;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--h2_size);
    line-height: 1.05;
    margin: 20px 0;
}

.hero h3 {
    font-size: var(--h3_size);
}

.hero p {
    font-size: var(--p_size);
}

.hero-card {
    font-size: var(--p_size);
}


/* Imagenes HERO */
#images-hero {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.hero-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    padding-bottom: 10px;
}


/* SECCIONES */
/* informacion */

#informacion {
    padding: 5px;
}

#informacion h2 {
    font-size: var(--h2_size);
    margin-bottom: 25px;
    color: var(--gtexto);
}

#informacion p {
    font-size: var(--p_size);
    margin-bottom: 25px;
    text-align: justify;
    color: var(--gtexto);
}

#informacion .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

#informacion img {
    border-top: 100px;
    width: 100%;
    display: block;
}

/* horarios */
#horarios {
    padding: 55px;
    text-align: center;
}

#horarios h2 {
    font-size: var(--h2_size);
    margin-bottom: 25px;
    color: var(--btexto);
}

#horarios p {
    font-size: var(--p_size);
    margin-bottom: 25px;
    color: var(--btexto);
}

.btn-horarios {
    display: inline-block;
    margin-top: 20px;
    padding: 22px 70px;
    background: #4f84ab;
    color: var(--btexto);
    text-decoration: none;
    font-weight: 500;
    border-radius: 999px;
    transition: .3s ease;
}

.btn-horarios:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* tarifas */
#tarifas {
    padding: 25px;
    text-align: center;
}

#tarifas h2 {
    font-size: var(--h2_size);
    margin-bottom: 25px;
    color: var(--gtexto);
}

#tarifas h3 {
    font-size: var(--h3_size);
    color: var(--gtexto);
}

#tarifas p {
    font-size: var(--p_size);
    color: var(--gtexto);
    text-align: justify;
}


/* Imagenes tarifas */
#images-tarifas {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    color: var(--btexto);
    font-size: var(--p_size);
    width: 100%;
}

.tarifas-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    padding-bottom: 10px;
}

/* Opiniones */
#opiniones {
    padding: 55px;
    text-align: center;
}

#opiniones h2 {
    font-size: var(--h2_size);
    margin-bottom: 25px;
    color: var(--btexto);
}

#opiniones p {
    color: var(--btexto);
}

.testimonial {
    background: var(--cuadros_fondo);
    padding: 35px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--btexto);
}

.testimonial .stars {
    font-size: var(--p_size);
    letter-spacing: 2px;
    color: var(--btexto);
}

.testimonial p {
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
    text-align: justify;
}

.carousel-wrap {
    position: relative;
}

.carousel-track-wrap {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.testimonial {
    min-width: calc(50% - 10px);
    background: var(--cuadros_fondo);
    border-radius: 8px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
    color: var(--btexto);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid white;
    background: transparent;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: .3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    font-size: var(--p_size);
}

.testimonial-author span {
    font-size: var(--p_size);
    opacity: 0.8;
}

/* Contacto */
.contact {
    padding: 15px;
}

.contact-box {
    max-width: 600px;
}

.contact h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--gtexto);
    margin-bottom: 8px;
}

.contact p {
    padding-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact input,
.contact textarea {
    padding: 14px 0;
    border: none;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
    border-radius: 0;
}

input::placeholder,
textarea::placeholder {
    color: var(--gtexto);
    font-size: 14px;
    letter-spacing: 0.03em;
}

input:focus,
textarea:focus {
    border-bottom-color: white;
}

.contact textarea {
    min-height: 140px;
    resize: none;
}

.contact-box-glass {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 40px;
}

.contact button {
    margin-top: 10px;
    align-self: flex-start;
    padding: 14px 48px;
    border: 1.5px solid var(--gtexto);
    background: transparent;
    color: var(--gtexto);
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.3s, color 0.3s;
}

.contact button:hover {
    background: var(--cuadros_fondo);
    color: var(--btexto);
}



/* FOOTER */
footer {
    margin-top: 80px;
    background: #01344e40;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;

    padding: 60px 0;
}

.footer-brand img {
    height: 80px;
    width: auto;
    border-radius: 80px;
    margin-bottom: 15px;
}

.footer-brand p,
.footer-contact p {
    color: var(--btexto);
    opacity: .9;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--btexto);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.footer-links a {
    color: var(--btexto);
    text-decoration: none;
    opacity: .85;
    transition: .3s;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .15);

    text-align: center;
    color: var(--btexto);

    padding: 20px;
    font-size: .9rem;
    opacity: .8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 10px;

    color: white;
    text-decoration: none;

    transition: .3s;
}

.footer-contact a:hover {
    opacity: .8;
}

.footer-contact i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* ============================================================
   MEDIA QUERIES - RESPONSIVE
   ============================================================ */

/* TABLETS (768px y menos) */
@media (max-width: 768px) {
    :root {
        --h2_size: 40px;
        --h3_size: 20px;
        --p_size: 16px;
    }

    .header .container {
        padding: 20px 0;
        height: auto;
        flex-wrap: wrap;
    }

    .nav {
        display: grid;
        grid-template-columns: repeat(3, auto);
        justify-content: center;
        gap: 10px 15px;
    }

    .nav a {
        font-size: 0.75rem;
    }

    .logo img {
        height: 70px;
    }

    section {
        scroll-margin-top: 100px;
    }

    /* HERO */
    .hero {
        min-height: 80vh;
    }

    .hero-content {
        margin-top: 80px;
    }

    .hero h1 {
        font-size: var(--h2_size);
        margin: 15px 0;
    }

    .hero h3 {
        font-size: var(--h3_size);
    }

    #images-hero {
        margin-top: 40px;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-card img {
        height: 200px;
    }

    /* INFORMACIÓN */
    #informacion {
        padding: 20px;
    }

    #informacion .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* HORARIOS */
    #horarios {
        padding: 35px 20px;
    }

    #horarios .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .btn-horarios {
        padding: 16px 50px;
        font-size: 0.85rem;
    }

    /* TARIFAS */
    #tarifas {
        padding: 35px 20px;
    }

    #images-tarifas {
        margin-top: 40px;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tarifas-card img {
        height: 200px;
    }

    /* OPINIONES */
    #opiniones {
        padding: 35px 20px;
    }

    .testimonial {
        min-width: 100%;
        padding: 25px;
    }

    .testimonial-author strong {
        font-size: 16px;
    }

    /* CONTACTO */
    .contact {
        padding: 35px 20px;
    }

    .contact h2 {
        font-size: 2.2rem;
    }

    .contact-box-glass {
        padding: 25px;
    }

    /* FOOTER */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }

    .footer-brand img {
        height: 60px;
    }
}

/* MÓVILES (480px y menos) */
@media (max-width: 480px) {
    :root {
        --h2_size: 24px;
        --h3_size: 16px;
        --p_size: 14px;
    }

    .header {
        padding-bottom: 5px;
    }

    .header .container {
        flex-direction: column;
        padding: 15px 0;
        height: auto;
        gap: 15px;
    }

    .nav {
        display: grid;
        grid-template-columns: repeat(3, auto);
        justify-content: center;
        gap: 10px 15px;
    }

    .nav a {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }

    .logo img {
        height: 50px;
    }

    section {
        scroll-margin-top: 150px;
    }

    /* HERO */
    .hero {
        min-height: auto;
        padding-top: 140px;
    }

    .hero-content {
        margin-top: 40px;
        padding: 0 15px;
    }

    .hero h1 {
        font-size: var(--h2_size);
        margin: 10px 0;
    }

    .hero h3 {
        font-size: var(--h3_size);
    }

    .hero-card-text {
        font-size: 12px;
        padding: 0 5px;
    }

    #images-hero {
        margin-top: 25px;
        gap: 10px;
    }

    .hero-card img {
        height: 150px;
    }

    /* INFORMACIÓN */
    #informacion {
        padding: 15px;
    }

    #informacion h2 {
        font-size: var(--h2_size);
        margin-bottom: 15px;
    }

    #informacion p {
        font-size: var(--p_size);
        margin-bottom: 15px;
    }

    /* HORARIOS */
    #horarios {
        padding: 25px 15px;
    }

    #horarios h2 {
        margin-bottom: 15px;
    }

    .btn-horarios {
        padding: 14px 35px;
        font-size: 0.8rem;
    }

    /* TARIFAS */
    #tarifas {
        padding: 25px 15px;
    }

    #tarifas h3 {
        font-size: 16px;
    }

    #images-tarifas {
        margin-top: 25px;
        gap: 10px;
    }

    .tarifas-card img {
        height: 150px;
    }

    .tarifas-card {
        padding: 10px;
    }

    /* OPINIONES */
    #opiniones {
        padding: 25px 15px;
    }

    #opiniones h2 {
        margin-bottom: 20px;
    }

    .testimonial {
        padding: 20px;
        gap: 12px;
    }

    .testimonial p {
        font-size: 13px;
    }

    .testimonial .stars {
        font-size: 16px;
    }

    .testimonial-author {
        gap: 8px;
    }

    .testimonial-author img {
        width: 40px;
        height: 40px;
    }

    .testimonial-author strong {
        font-size: 14px;
    }

    /* CONTACTO */
    .contact {
        padding: 25px 15px;
    }

    .contact h2 {
        font-size: 1.8rem;
    }

    .contact p {
        font-size: var(--p_size);
        padding-bottom: 15px;
    }

    .contact-box-glass {
        padding: 20px;
    }

    .contact button {
        padding: 12px 35px;
        font-size: 12px;
    }

    /* FOOTER */
    footer {
        margin-top: 40px;
    }

    .footer-content {
        padding: 30px 0;
        gap: 20px;
    }

    .footer-brand img {
        height: 50px;
    }

    .footer-links h4,
    .footer-contact h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .footer-links a,
    .footer-contact a {
        font-size: 13px;
    }

    .footer-bottom {
        padding: 15px;
        font-size: 0.8rem;
    }
}