/* Custom Styles for Dra. Jesica Capolungo Website */

/* CSS Variables */
:root {
    --primary-color: #0a5a68;
    --primary-light: #0d6b7a;
    --primary-dark: #085057;
    --secondary-color: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --success-color: #25d366;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0.5rem auto;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    color: white !important;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(10, 90, 104, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 90, 104, 0.4);
    color: white !important;
}

.btn-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(10, 90, 104, 0.5);
    color: white !important;
}

.btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Professional Navigation Styles */
.navbar {
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    background-color: transparent;
    z-index: 1030;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.navbar.scrolled .navbar-brand {
    color: var(--primary-dark) !important;
    text-shadow: none;
}

.navbar-logo {
    height: 50px; /* Ajusta esta altura según el tamaño de tu logo */
    transition: all 0.3s ease;
}

.logo-dark {
    display: none; /* Oculto por defecto */
}

.navbar.scrolled .logo-white {
    display: none; /* Ocultar el logo blanco al desplazarse */
}

.navbar.scrolled .logo-dark {
    display: inline-block; /* Mostrar el logo negro al desplazarse */
}

.navbar.scrolled .navbar-logo {
    height: 40px; /* Un tamaño ligeramente más pequeño cuando se desplaza */
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    position: relative;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-nav .nav-link {
    color: var(--text-dark) !important;
    text-shadow: none;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white !important;
}

.navbar.scrolled .navbar-nav .nav-link:hover {
    background-color: rgba(10, 90, 104, 0.1);
    color: var(--primary-dark) !important;
}

.navbar-nav .nav-link.active {
    color: white !important;
}

.navbar.scrolled .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

.navbar.scrolled .navbar-nav .nav-link.active::after {
    background-color: var(--primary-color);
}

/* Navbar Toggler */
.navbar-toggler {
    border: none !important;
    background-color: transparent !important;
    padding: 0;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(8, 80, 87, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    filter: none;
}

/* Navbar CTA Button */
.navbar .btn-primary {
    background-color: white;
    border-color: white;
    color: var(--primary-dark) !important;
    border-radius: 50px;
    padding: 0.6rem 1.75rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.navbar .btn-primary:hover {
    background-color: white;
    border-color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.navbar.scrolled .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
    box-shadow: 0 4px 15px rgba(10, 90, 104, 0.3);
}

.navbar.scrolled .btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(10, 90, 104, 0.4);
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(10, 90, 104, 0.8), rgba(13, 107, 122, 0.9));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

/* WebP support for hero background */
.hero-section {
    background-image: url('../img/hero.webp');
}

/* Fallback for non-WebP browsers */
.hero-section {
    background-image: url('../img/hero.png');
}

.text-highlight-yellow {
    color: #FFD700; /* Un amarillo brillante */
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-section.active .hero-background {
    animation: zoomIn 10s ease-out forwards;
}

.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .hero-buttons {
    opacity: 0; 
}

.hero-section.active .hero-content .hero-title {
    animation: fadeInUp 0s ease-out 0s forwards; 
}

.hero-section.active .hero-content .hero-subtitle {
    animation: fadeInUp 3s ease-out 1s forwards;
}

.hero-section.active .hero-content .hero-buttons {
    animation: fadeInUp 3s ease-out 1s forwards;
}

.hero-title.typing::after {
    content: '|';
    animation: blink 1s infinite; /* Duración ajustada a 1s */
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-image-container {
    position: relative;
}

.fade-in-element {
    opacity: 0;
}

.hero-image {
    width: 100%;
    height: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.hero-section.active .hero-image {
    animation: fadeInUp 3s ease-out 1s forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 90, 104, 0.85), rgba(13, 107, 122, 0.75));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    animation: slideInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons .btn {
    margin: 0.5rem;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-title, .section-subtitle, .benefit-card, .service-card, .about-image, .about-content, .accordion, .testimonial-card, .contact-form, .contact-info {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-title.fade-in, .section-subtitle.fade-in, .benefit-card.fade-in, .service-card.fade-in, .about-image.fade-in, .about-content.fade-in, .accordion.fade-in, .testimonial-card.fade-in, .contact-form.fade-in, .contact-info.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0;
}

.hero-section.active .scroll-down-indicator {
    animation: bounce 2s infinite, fadeInUp 1s ease-out 3s forwards;
}

.scroll-down-indicator a {
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Benefits Section */
.benefit-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(10, 90, 104, 0.1);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.benefit-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Services Section */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-medium);
    border-left-width: 6px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(10, 90, 104, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* About Section */
.about-image img {
    box-shadow: 0 15px 40px var(--shadow-medium);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-content {
    padding-left: 2rem;
}

.credentials ul li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

.credentials ul li i {
    color: var(--success-color);
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid rgba(10, 90, 104, 0.1);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-button {
    background-color: rgba(10, 90, 104, 0.05);
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(10, 90, 104, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    background-color: white;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-light);
    margin: 0 1rem;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-card blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.testimonial-card figcaption {
    color: var(--primary-color);
    font-weight: 600;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Contact Section */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.contact-info {
    padding: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-light);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.map-placeholder iframe {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Form Validation */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(10, 90, 104, 0.25);
}

.is-invalid {
    border-color: #dc3545;
}

.is-valid {
    border-color: #198754;
}

/* Footer */
footer {
    background-color: var(--primary-dark) !important;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-brand h5 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact-info i {
    width: 20px;
    text-align: center;
    color: var(--primary-light);
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
    text-decoration: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Modal Styles */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 20px 60px var(--shadow-dark);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-bottom: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.contact-method {
    padding: 1.5rem;
    border: 2px solid rgba(10, 90, 104, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contact-method:hover {
    border-color: var(--primary-color);
    background-color: rgba(10, 90, 104, 0.02);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto; /* Eliminar altura mínima para que el contenido fluya */
        align-items: center; /* Centrar verticalmente el contenido */
        padding-top: 100px; /* Aumentar espacio para la barra de navegación y bajar el contenido */
        padding-bottom: 50px; /* Añadir padding inferior para espacio */
        background-attachment: scroll;
    }

    .hero-content {
        text-align: center !important;
        margin-top: 0; /* Eliminar margen superior */
        margin-bottom: 2rem; /* Añadir margen inferior para separar de la imagen */
    }

    .hero-image-container {
        margin-bottom: 0; /* Eliminar margen inferior */
        margin-top: 0; /* Eliminar margen superior */
        text-align: center; /* Centrar la imagen dentro de su contenedor */
    }

    .hero-image {
        margin: 0 auto; /* Corregido para centrar horizontalmente */
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
        padding-top: 10px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-content {
        padding-left: 0;
        padding-top: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        background-color: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: var(--border-radius);
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .navbar-nav .nav-link {
        text-shadow: none;
        text-align: center;
        padding: 0.75rem;
        margin: 0.25rem 0;
    }

    .navbar-collapse.show .navbar-nav .nav-link {
        color: var(--text-dark) !important; /* Default link color in open menu */
    }

    .navbar.scrolled .navbar-nav .nav-link.active {
    color: white !important;
    }

    .navbar-nav .nav-link:hover,
    .navbar.scrolled .navbar-nav .nav-link:hover {
        background-color: rgba(10, 90, 104, 0.1);
        color: var(--primary-dark) !important;
    }
    
    .navbar-nav .nav-link.active::after {
        display: none;
    }

    .navbar-nav .nav-link.active {
        background-color: var(--primary-color); /* Fondo primario para el activo */
        color: white !important; /* Texto blanco para el activo */
    }

    .navbar .btn-primary,
    .navbar.scrolled .btn-primary {
        width: 100%;
        margin-top: 1rem;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: white !important;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .benefit-card,
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-form {
        margin-bottom: 2rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
}

.loaded {
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

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

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .hero-buttons {
        display: none !important;
    }
    
    .hero-section {
        background: var(--primary-color);
        color: white;
        min-height: auto;
        padding: 2rem 0;
    }
}

@media (max-width: 767.98px) {
  footer .text-md-left {
    text-align: center !important;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Estilos para la nueva sección de contacto */
.contact-item-centered {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-item-centered .contact-icon {
    margin: 0 auto 1rem;
}

/* Main WhatsApp Button Style */
.btn-whatsapp-main {
    background-color: var(--success-color);
    color: white !important; /* Use !important to override bootstrap if necessary */
    border-radius: 50px; /* Pill shape */
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-block;
    border: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.btn-whatsapp-main:hover {
    background-color: #128c7e; /* Darker green from floating button hover */
    color: white !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* Enhanced Contact Section */
#contacto {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.contact-panel {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-top: 2rem;
}

.contact-divider {
    width: 80px;
    height: 2px;
    background-color: #dee2e6;
    margin: 2.5rem auto;
}

.contact-item-enhanced {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-item-enhanced .contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.contact-item-enhanced .contact-details h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.map-container {
     border-radius: 12px;
     overflow: hidden; /* To make the iframe corners rounded */
     box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
     border: 1px solid #e9ecef;
}

.map-container iframe {
    display: block; /* Remove any default bottom space */
}

/* 404 Page Styles */
.error-404-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.error-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.error-404-section .display-1 {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.error-404-section .section-title {
    color: white;
    margin-bottom: 1rem;
}

.error-404-section .section-title::after {
    background: white;
}

.error-404-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.error-404-section .btn-primary {
    background-color: white;
    border-color: white;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.error-404-section .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
