/* css/styles.css */

:root {

    /* Paleta de Colores Oficial - BastDent */

    --primary: #00BDBA; /* Turquesa Claro */

    --primary-light: #1E95BD; /* Azul Cielo */

    --primary-dark: #001E82; /* Azul Marino */

    

    --turquesa-oscuro: #00A8AB;

    --azul-medio: #01779F;

    

    --magenta: #e3006f; /* Acento */

    --blue: #0B2EA1; /* Azul Rey (Acento) */

    --green: #8cc63f; /* Acento */

    --orange: #F37021; /* Naranja (Acento) */

    --whatsapp: #25D366; /* WhatsApp Green */

    

    --bg-main: #FFFFFF;

    --bg-light: #F8F9FA;

    --text-main: #333333;

    --text-muted: #666666;

    --white: #FFFFFF;

    

    /* Typography */

    --font-main: 'Outfit', sans-serif;

    

    /* Effects */

    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);

    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);

    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);

    --radius-sm: 8px;

    --radius-md: 16px;

    --radius-lg: 24px;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

}



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



html {

    scroll-behavior: smooth;

}



body {

    font-family: var(--font-main);

    background-color: var(--bg-main);

    color: var(--text-main);

    line-height: 1.6;

    overflow-x: hidden;

}



h1, h2, h3, h4 {

    color: var(--primary-dark);

    line-height: 1.2;

}



a {

    text-decoration: none;

    color: inherit;

}



.text-primary { color: var(--primary); }

.text-primary-dark { color: var(--primary-dark); }

.text-white { color: var(--white); }

.text-center { text-align: center; }



.bg-primary { background-color: var(--primary); }

.bg-primary-dark { background-color: var(--primary-dark); }

.bg-magenta { background-color: var(--magenta); }

.bg-blue { background-color: var(--blue); }

.bg-green { background-color: var(--green); }

.bg-light { background-color: var(--bg-light); }



.mt-2 { margin-top: 0.5rem; }

.mt-3 { margin-top: 1rem; }

.mt-4 { margin-top: 1.5rem; }

.mt-5 { margin-top: 3rem; }

.mb-2 { margin-bottom: 0.5rem; }

.mb-4 { margin-bottom: 1.5rem; }



.container {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 2rem;

}



.section {

    padding: 5rem 0;

}



/* Navbar */

.navbar {

    position: fixed;

    top: 0;

    width: 100%;

    z-index: 1000;

    padding: 1.2rem 0;

    transition: var(--transition);

    background: rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(0,0,0,0.05);

}



.navbar.scrolled {

    padding: 0.8rem 0;

    background: rgba(255, 255, 255, 0.98);

    box-shadow: var(--shadow-sm);

}



.navbar .container {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.logo {

    font-size: 2rem;

    font-weight: 700;

    display: flex;

    align-items: center;

}



.nav-links {

    display: flex;

    gap: 2rem;

}



.nav-links a {

    font-weight: 500;

    color: var(--primary-dark);

    transition: var(--transition);

    position: relative;

}



.nav-links a:hover {

    color: var(--primary);

}



/* Dropdown Menu Styles */

.nav-item-dropdown {

    position: relative;

    display: flex;

    align-items: center;

}



.dropdown-content {

    display: none;

    position: absolute;

    background-color: white;

    min-width: 280px;

    box-shadow: 0px 10px 25px rgba(0,0,0,0.1);

    z-index: 1000;

    border-radius: 12px;

    top: 100%;

    left: -50%;

    padding: 15px 0;

    border: 1px solid rgba(0,0,0,0.05);

}



.dropdown-content a {

    color: var(--text-dark) !important;

    padding: 10px 25px !important;

    text-decoration: none;

    display: block;

    font-size: 0.95rem;

    transition: all 0.2s ease;

}



.dropdown-content a:hover {

    background-color: var(--bg-light);

    color: var(--primary) !important;

    padding-left: 30px !important;

}



.dropdown-category {

    padding: 10px 25px 5px 25px;

    font-weight: 800;

    color: var(--primary-dark);

    font-size: 0.85rem;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    margin-bottom: 5px;

}



.nav-item-dropdown:hover .dropdown-content {

    display: block;

}



.menu-toggle {

    display: none;

    font-size: 1.5rem;

    cursor: pointer;

    color: var(--primary-dark);

}



/* Buttons */

.btn-primary, .btn-primary-dark {

    color: var(--white);

    padding: 0.8rem 2rem;

    border-radius: 5px;

    font-weight: 600;

    transition: var(--transition);

    display: inline-block;

    border: none;

    cursor: pointer;

    text-align: center;

}



.btn-primary {

    background: var(--primary);

}



.btn-primary:hover {

    background: #00a5ae;

    transform: translateY(-2px);

}



.btn-primary-dark {

    background: var(--primary-dark);

}



.btn-primary-dark:hover {

    background: #003666;

    transform: translateY(-2px);

}



.btn-whatsapp {

    background: var(--whatsapp);

    color: var(--white);

    padding: 0.8rem 2rem;

    border-radius: 50px;

    font-weight: 600;

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

    transition: var(--transition);

}



.btn-whatsapp:hover {

    background: #1da851;

    transform: translateY(-2px);

}



.btn-whatsapp-blue {

    background: #0B2EA1;

    color: var(--white);

    padding: 0.8rem 2rem;

    border-radius: 50px;

    font-weight: 600;

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

    transition: var(--transition);

}



.btn-whatsapp-blue:hover {

    background: var(--white);

    color: var(--whatsapp);

    transform: translateY(-2px);

}



.btn-whatsapp-sm {

    background: var(--whatsapp);

    color: var(--white);

    padding: 0.5rem 1rem;

    border-radius: 50px;

    font-weight: 600;

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

    font-size: 0.9rem;

    transition: var(--transition);

}



.btn-whatsapp-sm:hover {

    background: #1da851;

}



.btn-facebook {

    background: #3b5998;

    color: var(--white);

    padding: 0.6rem 1.2rem;

    border-radius: 5px;

    font-weight: 600;

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

    transition: var(--transition);

}



.btn-facebook:hover {

    background: #2d4373;

}



/* Hero Section */

.hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    position: relative;

    padding-top: 80px;

    padding-bottom: 6rem;

    background-color: #c7eafc;

    background-image: url('../img/inicio-portada.webp');

    background-size: cover;

    background-position: center 15%;

    background-repeat: no-repeat;

}



.hero-shape-divider {

    position: absolute;

    bottom: -1px;

    left: 0;

    width: 100%;

    overflow: hidden;

    line-height: 0;

}



.hero-shape-divider svg {

    position: relative;

    display: block;

    width: calc(100% + 1.3px);

    height: 6vw;

    min-height: 40px;

    max-height: 80px;

}



.hero-content {

    display: grid;

    grid-template-columns: 1.3fr 0.7fr;

    gap: 4rem;

    align-items: center;

    width: 100%;

    position: relative;

    z-index: 2;

}



.hero-text h1 {

    font-size: clamp(2rem, 3.5vw, 2.8rem);

    margin-bottom: 1rem;

    color: var(--primary);

}



.hero-text p {

    font-size: 1.5rem;

    color: var(--primary-dark);

    margin-bottom: 2.5rem;

}



/* About Section */

.about-grid {

    display: grid;

    grid-template-columns: 1fr 1.2fr;

    gap: 4rem;

    align-items: center;

    margin-top: 3rem;

}



.about-text p {

    margin-bottom: 1.5rem;

    font-size: 1.1rem;

    color: var(--text-muted);

}



/* Services Section */

.services-header {

    display: grid;

    grid-template-columns: 1.2fr 1fr;

    gap: 3rem;

    align-items: center;

    margin-bottom: 4rem;

}



.services-intro h2 {

    font-size: 2.5rem;

    margin-bottom: 1.5rem;

}



.services-intro p {

    margin-bottom: 1.2rem;

    font-size: 1.1rem;

    color: var(--text-muted);

}



.highlight-text {

    color: var(--primary-dark) !important;

}



.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.services-grid > .service-card {
    flex: 0 0 calc(25% - 1.125rem);
    max-width: calc(25% - 1.125rem);
}



.service-card {

    border-radius: 10px;

    overflow: hidden;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);

    display: flex;

    flex-direction: column;

}



.service-card:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow-md);

}



.service-img {

    height: 140px;

    background-size: cover;

    background-position: center;

}



.service-content {

    padding: 1rem;

    text-align: center;

    flex-grow: 1;

    display: flex;

    align-items: center;

    justify-content: center;

}



.service-content h3 {

    color: var(--white);

    font-size: 1.5rem;

    margin: 0;

}



.service-content h3 small {

    display: block;

    font-weight: 300;

    font-size: 0.9rem;

    margin-top: 0.3rem;

}



/* Impact Section */

.impact-section {

    background: var(--azul-medio);

    position: relative;

    overflow: hidden;

}



.impact-bg-shape {

    position: absolute;

    top: -50%;

    right: -20%;

    width: 800px;

    height: 800px;

    background: radial-gradient(circle, rgba(0, 189, 186, 0.15) 0%, rgba(0, 189, 186, 0) 70%);

    border-radius: 50%;

    z-index: 0;

}



.impact-section .container {

    position: relative;

    z-index: 1;

}



.impact-grid {

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    gap: 4rem;

    align-items: stretch;

}



.impact-stats {

    display: flex;

    flex-direction: column;

    height: 100%;

    gap: 1.5rem;

}



.stat-card {

    background: #ffffff;

    border-radius: 12px;

    padding: 1rem 2.5rem;

    display: flex;

    flex-direction: row;

    align-items: center;

    gap: 2rem;

    box-shadow: 0 10px 25px rgba(0,0,0,0.15);

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    border: none;

    flex: 1;

}



.stat-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 15px 35px rgba(0,0,0,0.25);

}



.stat-icon {

    width: 80px;

    height: 80px;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 2.5rem;

    flex-shrink: 0;

}



.stat-card-text {

    display: flex;

    flex-direction: column;

    align-items: center;

    flex: 1;

}



.stat-card-text h3 {

    font-size: 2.8rem;

    margin: 0;

    line-height: 1.1;

    color: var(--primary-dark);

    font-weight: 700;

}



.stat-card-text p {

    color: #666666;

    font-weight: 600;

    margin: 0;

    margin-top: 0.2rem;

    font-size: 1.1rem;

}



.bg-yellow { background-color: #FFC107; }





/* Footer Section */

.footer {

    padding: 0; /* Removing top/bottom padding to let internal elements dictate space */

}



.footer-grid {

    display: grid;

    grid-template-columns: 1fr 1.2fr;

    gap: 0;

}



.footer-info {

    padding: 4rem 2rem 4rem 0;

}



.footer-details h4 {

    color: var(--primary-dark);

    margin-top: 1.5rem;

    margin-bottom: 0.5rem;

    font-size: 1.1rem;

}



.footer-details p {

    color: var(--text-main);

    line-height: 1.4;

    font-size: 0.95rem;

}



.footer-form {

    padding: 4rem;

    overflow: hidden;

}



.footer-map-wrapper {

    margin-top: 1.5rem;

    margin-left: -4rem;

    margin-right: -4rem;

    margin-bottom: -4rem;

}



.contact-form {

    display: flex;

    flex-direction: column;

    gap: 1rem;

}



.form-row {

    display: flex;

    gap: 1rem;

}



.form-row > * {

    flex: 1;

}



.contact-form input,

.contact-form select {

    width: 100%;

    padding: 0.8rem;

    border: none;

    background: #e2e8f0;

    color: #4a5568;

    border-radius: 4px;

    font-family: var(--font-main);

}



.contact-form input:focus,

.contact-form select:focus {

    outline: 2px solid var(--primary);

    background: var(--white);

}



.footer-bottom {

    padding: 1rem 0;

    border-top: 1px solid rgba(255,255,255,0.1);

}



/* Animations */

.fade-in-up {

    opacity: 0;

    transform: translateY(30px);

    transition: opacity 0.8s ease-out, transform 0.8s ease-out;

}



.fade-in-left {

    opacity: 0;

    transform: translateX(-30px);

    transition: opacity 0.8s ease-out, transform 0.8s ease-out;

}



.fade-in-right {

    opacity: 0;

    transform: translateX(30px);

    transition: opacity 0.8s ease-out, transform 0.8s ease-out;

}



.visible {

    opacity: 1;

    transform: translate(0);

}



.delay-1 { transition-delay: 0.15s; }

.delay-2 { transition-delay: 0.3s; }

.delay-3 { transition-delay: 0.45s; }

.delay-4 { transition-delay: 0.6s; }

.delay-5 { transition-delay: 0.75s; }

.delay-6 { transition-delay: 0.9s; }

/* Urgency Banner */

.urgency-banner {

    position: relative;

    width: 100%;

    height: 300px;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: var(--shadow-md);

    cursor: pointer;

    display: block;

}



.urgency-bg-normal,

.urgency-bg-hover {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-size: cover;

    background-position: center;

    transition: opacity 0.5s ease;

}



.urgency-bg-normal {

    background-image: url('../img/inicio-urgencia-normal.webp');

    opacity: 1;

}



.urgency-bg-hover {

    background-image: url('../img/inicio-urgencia-hover.webp');

    opacity: 0;

}



.urgency-banner:hover .urgency-bg-normal {

    opacity: 0;

}



.urgency-banner:hover .urgency-bg-hover {

    opacity: 1;

}



.urgency-content-normal,

.urgency-content-hover {

    position: absolute;

    top: 0;

    right: 0;

    width: 50%;

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 2rem;

    transition: opacity 0.5s ease, transform 0.5s ease;

}



.urgency-content-normal {

    opacity: 1;

    transform: translateX(0);

}



.urgency-banner:hover .urgency-content-normal {

    opacity: 0;

    transform: translateX(20px);

}



.urgency-content-hover {

    opacity: 0;

    transform: translateX(-20px);

}



.urgency-banner:hover .urgency-content-hover {

    opacity: 1;

    transform: translateX(0);

}



.urgency-content-normal h2 {

    font-size: 3.8rem;

    color: #d61b1f; /* Rojo intenso */

    line-height: 1.1;

    text-align: center;

    margin-right: 0;

    text-shadow: 

        -2px -2px 0 var(--white),

         2px -2px 0 var(--white),

        -2px  2px 0 var(--white),

         2px  2px 0 var(--white),

         0px  5px 15px rgba(0,0,0,0.15);

}



.urgency-content-hover .logo-white {

    width: 250px;

    margin-bottom: 1rem;

}



.urgency-content-hover h3 {

    font-size: 3rem;

    color: var(--white);

    margin-bottom: 1.5rem;

    line-height: 1.2;

}



@media (max-width: 768px) {

    .urgency-banner { height: 300px; }

    .urgency-content-normal h2 { font-size: 2rem; }

    .urgency-content-hover h3 { font-size: 2rem; }

    .urgency-content-hover .logo-white { width: 180px; }

}





/* Responsive */

@media (max-width: 992px) {

    .impact-grid {

        grid-template-columns: 1fr;

        gap: 3rem;

    }

    

    .hero-content, .about-grid, .services-header, .footer-grid {

        grid-template-columns: 1fr;

    }

    

    .hero {

        padding-top: 120px;

    }

    

    .hero-text {

        text-align: center;

    }

    

    .hero-buttons {

        justify-content: center;

    }

    

    .services-grid > .service-card {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }

    

    .footer-info {

        padding: 3rem 1rem;

        text-align: center;

    }

    

    .footer-form {

        padding: 3rem 1.5rem;

    }

    

    .footer-map-wrapper {

        margin-left: -1.5rem;

        margin-right: -1.5rem;

        margin-bottom: -3rem;

    }

}



@media (max-width: 768px) {

    .nav-links {

        display: none;

    }

    

    .menu-toggle {

        display: block;

        display: block;
    }
    
    .navbar .btn-primary {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .services-grid > .service-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .service-card[style*="grid-column"] {
        flex-direction: column !important;
    }
    
    .service-card[style*="grid-column"] .service-img,
    .service-card[style*="grid-column"] .service-content {
        width: 100% !important;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-item-dropdown {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: transparent;
        padding: 5px 0 10px 15px;
        display: none;
        min-width: 100%;
        border: none;
    }
    .nav-item-dropdown:hover .dropdown-content, 
    .nav-item-dropdown:active .dropdown-content {
        display: block;
    }
}

/* Treatment Pages Styles */
.treatment-hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.treatment-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 25, 47, 0.65); /* Dark overlay */
    z-index: 1;
}

.treatment-hero .container {
    position: relative;
    z-index: 2;
}

.treatment-desc-box {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    margin-top: -100px; /* Floating effect over the hero */
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.treatment-desc-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.treatment-desc-box p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}

/* Bloquear interaccion de imagenes */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--primary-dark);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.cookie-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
