/* Custom CSS for Dr. Mauricio J. Albornoz Landing Page */

/* Brand Colors */
:root {
    --primary-color: #1B3A57; /* Azul petróleo oscuro */
    --secondary-color: #4A90E2; /* Azul más brillante y moderno */
    --accent-color: #F5A623; /* Naranja/ámbar para acentos */
    --light-bg: #FDFEFE; /* Un blanco ligeramente más cálido */
    --dark-bg: #2c3e50; /* Gris oscuro azulado */
    --text-color: #34495e; /* Gris oscuro para texto */
    --light-text-color: #7f8c8d; /* Gris más claro */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Override Bootstrap primary color */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #142a40;
    border-color: #142a40;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #357ABD;
    border-color: #357ABD;
    color: white;
}

/* General Styles */
html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cardo', serif;
    color: var(--primary-color);
    font-weight: 700;
}

.lead {
    color: var(--light-text-color);
    font-weight: 400;
}

.container {
    max-width: 1140px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 700px;
    /* overflow: hidden; Eliminado para permitir el efecto de paralaje */
    background: url('hero.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Esto crea el efecto de paralaje */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.4);
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    max-width: 700px;
    padding: 40px;
    color: var(--text-color);
}

.hero-content h1 {
    font-size: 3.8rem;
    color: var(--primary-color);
    text-shadow: none;
}

.hero-content .lead {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
}

.hero-content .btn {
    font-size: 1rem;
    padding: 0.8rem 2.5rem;
    border-radius: 50px; /* Rounded pill shape */
    transition: all 0.3s ease;
    font-weight: 600;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.hero-content .btn:hover {
    background-color: #142a40; /* Darken primary color */
    border-color: #142a40;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Top Bar */
.top-bar {
    width: 100%;
    z-index: 1031; /* Higher than navbar */
    position: fixed;
    top: 0;
    left: 0;
    background-color: #e9ecef !important; /* Slightly darker light grey */
    height: 25px; /* More discreet height */
    display: flex; /* To center content vertically */
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle border */
}

.top-bar .social-links a,
.top-bar .contact-info a {
    font-size: 0.85rem; /* Slightly smaller font */
    color: var(--text-color) !important; /* Use main text color for discretion */
}

.top-bar .social-links a:hover,
.top-bar .contact-info a:hover {
    color: var(--primary-color) !important; /* Primary color on hover */
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: fixed; /* Ensure it's fixed */
    top: 25px; /* Offset by new top-bar height */
    z-index: 1030; /* Below top-bar */
}

.navbar-nav .nav-item {
    margin-left: 1.2rem; /* Spacing between items on desktop */
}

.navbar-nav .nav-link {
    padding: 0.6rem 0; /* Consistent padding for desktop */
    display: block;
    color: var(--text-color) !important;
}

/* Adjust body padding to prevent content overlap */
body {
    padding-top: 81px; /* Desktop: top-bar (25px) + navbar (approx 56px) */
}

/* Adjust navbar height when scrolled */
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 0.3rem 0; /* Slightly reduced padding when scrolled */
}

@media (max-width: 991.98px) {
    .top-bar {
        display: none !important;
    }
    .navbar {
        top: 0;
    }
    /* Ensure the container inside the navbar is full-width on mobile */
    .navbar .container {
        max-width: 100%;
    }
    .navbar-brand {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.2;
    }
    body {
        padding-top: 56px; /* Mobile: navbar height (approx 56px) */
    }
    /* Style the expanded menu */
    .navbar-collapse {
        margin-top: 0.5rem; /* Space between toggler and links */
        padding: 1rem;
        background-color: rgba(255, 255, 255, 0.98);
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    .navbar-nav .nav-link:after {
        display: none; /* Hide underline on mobile */
    }

    /* The absolute final attempt to remove mobile focus ring */
    .navbar-toggler,
    .navbar-toggler:hover,
    .navbar-toggler:focus,
    .navbar-toggler:active {
        -webkit-tap-highlight-color: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }
    .navbar-toggler .fa-bars,
    .navbar-toggler:focus .fa-bars,
    .navbar-toggler:active .fa-bars {
        color: var(--primary-color);
        font-size: 1.5rem;
        outline: none !important;
        box-shadow: none !important;
    }
}

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-grow: 1;
    }
    .navbar-nav {
        margin-left: auto; /* Push items to the right */
        flex-wrap: nowrap; /* Prevent items from wrapping */
    }
}



.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 0.3rem 0; /* Slightly reduced padding when scrolled */
}

.navbar-brand {
    font-family: 'Cardo', serif;
    font-size: 1.3rem; /* Further reduced font size to prevent wrapping */
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 600;
    transition: color 0.3s ease;
    color: var(--text-color) !important;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover:after, .nav-link.active:after {
    width: 50%;
}

.nav-link.active {
    color: var(--secondary-color) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
}

.section-title p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Card Styles */
.card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 2rem;
}

/* Service Cards - New Design */
.service-card-new {
    background-color: white;
    border-radius: 20px; /* Aumentado para esquinas más redondeadas */
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none; /* Remove default card border */
}

.service-card-new:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon-new {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

/* Patología Cards */
.patologia-card {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.patologia-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-right: 1.5rem;
    min-width: 50px;
}

.patologia-image-container {
    display: none; /* Ocultar imágenes para un look más limpio */
}

.stats-badge {
    margin-top: 1rem;
}

.badge {
    background-color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5em 1em;
}

/* Why Choose Us Section */
.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--light-bg);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

/* Testimonial Cards */
.testimonial-card {
    background-color: white;
    padding: 2rem;
}

.testimonial-image-container {
    display: none; /* Ocultar imágenes para un look más limpio */
}

.testimonial-card .fa-quote-left {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.testimonial-avatar {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Contact Section - V3 */
.location-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.location-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.bg-primary-soft {
    background-color: rgba(74, 144, 226, 0.1);
}

.location-actions-map {
    margin-top: auto;
}
.location-card-v2 {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.location-card-v2:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.location-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    color: white;
    background-color: var(--primary-color); /* Color base para el primer card */
}

/* Color específico para la segunda tarjeta */
.location-card-v2.atenea .location-header {
    background-color: #367061; /* Verde azulado */
}

.location-header i {
    font-size: 2rem;
    margin-right: 1rem;
}

.location-header h4 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

.location-body {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-grow: 1;
}

.day-block {
    font-family: 'Cardo', serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.1;
}

/* Color específico para la segunda tarjeta */
.location-card-v2.atenea .day-block {
    color: #367061;
}

.info-block p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-block .address {
    font-weight: 600;
    color: var(--text-color);
}

.info-block .address a {
    color: var(--text-color);
    text-decoration: none; /* Eliminar subrayado */
    transition: color 0.3s ease;
}

.info-block .address a:hover {
    color: var(--secondary-color);
}

.info-block .schedule {
    font-weight: 500;
    color: var(--light-text-color);
}

.map-container {
    margin-top: 0; /* Empuja el mapa al final de la tarjeta */
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.map-container iframe {
    border-radius: 0 0 20px 20px; /* Redondea las esquinas inferiores del mapa */
}

/* Estilos para el CTA de WhatsApp */
.whatsapp-cta {
    background-color: #e8f5e9; /* Un verde muy claro */
    border-radius: 15px;
    padding: 3rem;
    border: 2px dashed #25D366;
}

.whatsapp-icon {
    font-size: 3rem;
    color: #25D366;
    margin-bottom: 1rem;
}

.btn-success {
    background-color: #25D366;
    border-color: #25D366;
}

.btn-success:hover {
    background-color: #1da851;
    border-color: #1da851;
}

.location-card-v2 .btn-success {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.location-card-v2 .btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}



/* Footer */
.footer {
    background-color: #142a40;
}

.footer a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility: Focus styles */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b3b3b3;
}

/* About Section - V2 */


.about-img-wrapper img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 20px; /* Aseguramos el border-radius aquí */
    box-shadow: var(--shadow-lg);

}

.about-content-card {
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-left: -3rem;
    z-index: 1;
    position: relative;
}

.about-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

@media (max-width: 991.98px) {
    /* Reset the desktop-specific negative margin for all layouts on mobile */
    .about-content-card {
        margin-left: 0;
    }

    /* Style the mobile-specific about section */
    #about-mobile .about-img-wrapper img {
        max-width: 90%;
        margin: 0 auto;
    }
    #about-mobile .about-content-card {
        width: 90%;
        margin: 0 auto;
        padding: 2rem;
    }
}

.feature-card-v2 {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.feature-icon-v2 {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
    transition: all 0.4s ease;
}

.feature-card-v2:hover .feature-icon-v2 {
    transform: rotate(360deg) scale(1.1);
}

.feature-card-v2 h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card-v2 p {
    font-size: 0.95rem;
    line-height: 1.6;
}
