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

body {
    font-family: 'Poppins', sans-serif;
}


.logo a {
    display: block;
    line-height: 0;
}

.logo img {
    max-width: 150px;
    height: auto;
    display: block;
}


header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 40px;
    background-image: url('media/waterBG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



.glass-bar {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 25px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar {
    display: flex;
    list-style: none;
    gap: 40px;
}

.navbar a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 18px;
    display: inline-block;
    transition: transform 0.3s ease, text-shadow 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.navbar:hover a {
    opacity: 0.5;
    filter: blur(1.5px);
    transform: scale(0.9);
}

.navbar a:hover {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.15);
    text-shadow: 0 0 20px rgba(6, 164, 255, 0.9);
}

/* Botón hamburguesa para móvil */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.hamburger.oculto {
    opacity: 0;
    pointer-events: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 4px;
    transition: all 0.3s ease;
    transform-origin: center;
}

header h1 {
    color: white;
    font-size: 4.5rem;
    text-align: center;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    animation: heroIn 1.2s ease forwards;
}


.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 7rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}



@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(80px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



/* ==========================================================================
   ICONOS FLOTANTES FIJOS (WhatsApp + Email)
   ========================================================================== */

.floating-icons {
    position: fixed;
    bottom: 120px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.floating-icons.oculto {
    opacity: 0;
    pointer-events: none;
}

.floating-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    position: relative;
}

.floating-icon img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.floating-icon svg {
    display: block;
}

.floating-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.floating-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(14, 165, 233, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.floating-icon:hover .floating-tooltip {
    opacity: 1;
}

@media (max-width: 768px) {
    .floating-icons {
        display: none;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    position: relative;
    background-image: url('media/waterBG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 20px 0 10px 0;
    margin-top: 0;
    width: 100%;
    animation: footerFadeIn 0.8s ease forwards;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenedor en Grid para logo (izquierda) + contacto/enlaces (derecha) */
.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 0 20px 5px 20px;
}

/* Columna izquierda: logo + nombre */
.logo-col {
    justify-self: start;
    align-self: start;
    text-align: center;
}

.logo-col h2 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 21px;
}

.footer-logo-img a {
    display: block;
    line-height: 0;
    transition: transform 0.4s ease;
}

.footer-logo-img a:hover {
    transform: scale(1.1) rotate(-3deg);
}

.footer-logo-img img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: filter 0.4s ease;
}

.footer-logo-img a:hover img {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

/* Columna derecha: contacto + enlaces */
.right-col {
    display: flex;
    gap: 60px;
    justify-self: end;
}

.footer-group h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 23px;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

.footer-group h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.4s ease;
}

.footer-group:hover h3::after {
    width: 100%;
}

.footer-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-group ul li {
    font-size: 13px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-group ul li:hover {
    transform: translateX(8px);
    color: #ffffff;
}

.footer-group ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-group ul li a:hover {
    color: #ffffff;
}

.footer-group ul li a.whatsapp-link,
.footer-group ul li a.gmail-link {
    color: inherit;
    text-decoration: none;
}

.footer-group ul li a.whatsapp-link:hover,
.footer-group ul li a.gmail-link:hover {
    color: #ffffff;
}

.footer-group ul li img.whatsapp-icon,
.footer-group ul li img.gmail-icon,
.footer-group ul li img.maps-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.footer-group ul li {
    -webkit-touch-callout: none;
}

/* Barra inferior de derechos reservados */
.footer-bottom {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 auto;
    padding: 15px 20px 0 20px;
    /* Compactado */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
    width: 100%;
    animation: copyrightPulse 3s ease-in-out infinite;
}

.footer-credits {
    grid-column: 1 / -1;
    text-align: center;
    padding: 0 20px 0 20px;
    opacity: 0.65;
    transition: opacity 0.4s ease;
}

.footer-credits:hover {
    opacity: 1;
}

.footer-credits p {
    font-size: 14px;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    transition: color 0.4s ease;
}

.footer-credits:hover p {
    color: rgba(255, 255, 255, 0.85);
}

.footer-credits .credit-nombre {
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
    cursor: default;
}

.footer-credits .credit-nombre:hover {
    transform: scale(1.1);
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.footer-credits p:has(.credit-nombre:hover) .credit-prefix {
    opacity: 0.3;
    filter: blur(1.5px);
    transition: all 0.4s ease;
}

.footer-credits p:has(.credit-nombre:hover) .credit-social {
    opacity: 0.3;
    filter: blur(1.5px);
    transition: all 0.4s ease;
}

.footer-credits a.credit-social {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.footer-credits a.credit-social:hover {
    color: #ffffff;
    transform: scale(1.25);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    opacity: 1 !important;
}

@keyframes copyrightPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* ==========================================================================
   RESPONSIVE - TABLET (768px - 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    header h1 {
        font-size: 3rem;
    }

    .glass-bar {
        top: 25px;
        left: 25px;
        right: 25px;
        padding: 6px 20px;
    }

    .navbar {
        gap: 25px;
    }

    .navbar a {
        font-size: 15px;
    }

    .footer-container {
    gap: 80px;
    }

    .right-col {
        gap: 60px;
    }
}

/* ==========================================================================
   RESPONSIVE - MÓVIL (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        padding: 20px;
        height: 70vh;
    }

    header h1 {
        font-size: 2rem;
        padding: 0 10px;
        transition: margin-top 0.3s ease;
    }

    header.menu-abierto h1 {
        margin-top: 300px;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
    }

    .glass-bar {
        flex-wrap: wrap;
        top: 15px;
        left: 15px;
        right: 15px;
        padding: 10px 15px;
        border-radius: 20px;
    }

    .logo img {
        max-width: 100px;
    }

    .navbar {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 5px;
        order: 3;
        height: 0;
        opacity: 0;
        overflow: hidden;
        transition: height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
    }

    .navbar.visible {
        height: 230px;
        opacity: 1;
        padding: 10px 0 5px 0;
        transition: height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
    }

    .navbar li {
        text-align: center;
        padding: 0;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .navbar.visible li {
        padding: 10px 0;
        opacity: 1;
        transform: translateY(0);
    }

    .navbar.visible li:nth-child(1) { transition-delay: 0.08s; }
    .navbar.visible li:nth-child(2) { transition-delay: 0.14s; }
    .navbar.visible li:nth-child(3) { transition-delay: 0.2s; }
    .navbar.visible li:nth-child(4) { transition-delay: 0.26s; }
    .navbar.visible li:nth-child(5) { transition-delay: 0.32s; }

    .navbar.closing {
        border-top: none;
        overflow: visible;
        transition: height 0.45s ease, opacity 0.3s ease, padding 0.3s ease;
    }

    .navbar.closing li {
        opacity: 0;
        transition: none;
    }

    .navbar a {
        font-size: 14px;
        display: block;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    .navbar:hover a {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    .scroll-indicator {
        font-size: 4rem;
        bottom: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding: 0 15px 15px 15px;
    }

    .logo-col {
        justify-self: center;
    }

    .right-col {
        flex-direction: column;
        gap: 25px;
        justify-self: center;
    }

    .footer-group h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-group:hover h3::after {
        width: 50px;
    }

    .footer-group ul li {
        justify-content: center;
    }

    .footer {
    padding: 12px 0 8px 0;
    }
}

/* ==========================================================================
   RESPONSIVE - MÓVIL PEQUEÑO (< 480px)
   ========================================================================== */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .navbar {
        gap: 8px;
    }

    .navbar a {
        font-size: 11px;
    }

    .logo img {
        max-width: 80px;
    }

    .footer-logo-img img {
        max-width: 90px;
    }

    .footer-bottom p {
        font-size: 11px;
    }
}