@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

.logo {
    height: 80px;
}

body {
    background-image: url('../img/fondo2_1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

/* ===== HEADER STYLES ===== */
.custom-header {
    background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.7) 0%,
                rgba(0, 0, 0, 0.5) 50%,
                rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

/* Contenedor principal del header */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logos del header */
.header-logo-left,
.header-logo-right {
    flex-shrink: 0;
}

.header-logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

/* Título del header */
.header-brand {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.header-title {
    color: #fff !important;
    font-family: 'Dancing Script', cursive !important;
    font-size: 2.5rem;
    font-weight: bold;
    text-decoration: none !important;
    letter-spacing: 4px;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 1),
                 0 0 20px rgba(0, 0, 0, 0.8),
                 0 0 30px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    display: inline-block;
}

.header-title:hover {
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 1),
                 0 0 20px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Navegación del header */
.header-nav {
    flex-shrink: 0;
}

.custom-nav {
    margin: 0;
    gap: 0.5rem;
}

.custom-nav .nav-link {
    color: #fff !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9),
                 0 0 8px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    position: relative;
}

.custom-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, white, transparent);
    transition: width 0.3s ease;
}

.custom-nav .nav-link:hover {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 1),
                 0 0 15px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.custom-nav .nav-link:hover::after {
    width: 100%;
}

/* Ajuste del body para compensar el header fixed */
body {
    padding-top: 110px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .header-logo-left,
    .header-logo-right {
        order: 1;
    }

    .header-brand {
        order: 2;
        flex: 1 0 100%;
    }

    .header-nav {
        order: 3;
        flex: 1 0 100%;
    }

    .custom-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .header-logo-img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .header-title {
        font-size: 1.25rem;
        letter-spacing: 2px;
    }

    .custom-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .header-logo-img {
        width: 45px;
        height: 45px;
    }
}

h1, h2, h3, h4, h5, h6, a {
    color: white !important;
    font-family: 'Dancing Script', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
                 0 0 10px rgba(0, 0, 0, 0.5);
}

p {
    font-family: 'Dancing Script', cursive;
}

p.lead {
    color: black !important;
    font-size: 1.3rem !important;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
                 0 0 8px rgba(255, 255, 255, 0.7);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.carousel-inner .carousel-item > div {
    flex: 1 0 auto;
}

.carousel-inner h5 {
    color: white !important;
    font-weight: bold;
}

/* Mover las flechas fuera del carrusel */
#terapiasCarousel .carousel-control-prev,
#terapiasCarousel .carousel-control-next {
  width: auto;
  top: 50%;
  transform: translateY(-50%);
}

#terapiasCarousel .carousel-control-prev {
  left: -50px;
}

#terapiasCarousel .carousel-control-next {
  right: -50px;
}

/* Ajustar contenido principal */
main.container {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 3.5rem;
    margin-top: 1.5rem;
}

/* Títulos principales con mejor visibilidad */
main h1 {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.95),
                 0 0 20px rgba(0, 0, 0, 0.8),
                 0 0 30px rgba(0, 0, 0, 0.6);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    line-height: 1.5;
    font-weight: bold;
    padding: 1rem 2rem;
    background: linear-gradient(135deg,
                rgba(0, 0, 0, 0.4) 0%,
                rgba(0, 0, 0, 0.3) 50%,
                rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

main h2 {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8),
                 0 0 12px rgba(0, 0, 0, 0.6);
    font-size: 2rem;
}

.parrafos {
    color: white;
    font-size: 26px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
                 0 0 8px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
}

.fondoAgua {
    background: linear-gradient(135deg, #a2d9ff, #e0f7ff);
}

.card-transparente {
    background-color: transparent;
    border: none;
}

.benefits-timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    text-align: center;
    color: #fff;
    max-width: 250px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.benefit-item:hover {
    transform: scale(1.05);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
}

/* ===== FOOTER STYLES ===== */
.custom-footer {
    background: linear-gradient(to top,
                rgba(0, 0, 0, 0.7) 0%,
                rgba(0, 0, 0, 0.5) 50%,
                rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Títulos del footer */
.footer-title {
    color: #fff !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.25rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #fff, transparent);
}

.text-md-start .footer-title::after {
    left: 0;
}

.text-center .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Lista del footer */
.footer-list {
    margin: 0;
    padding: 0;
}

.footer-item {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.6rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.footer-item:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Enlaces del footer */
.footer-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    transform: translateX(3px);
}

/* Redes sociales */
.social-link {
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.6));
}

.social-link i {
    color: #fff;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.15);
}

.social-link:hover i.bi-instagram {
    color: #C13584;
    filter: drop-shadow(0 0 10px #C13584);
}

.social-link:hover i.bi-whatsapp {
    color: #25D366;
    filter: drop-shadow(0 0 10px #25D366);
}

/* Copyright */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

/* Iconos de Bootstrap en el footer */
.footer-item i.bi {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.footer-item:hover i.bi {
    color: #fff;
}
