/* ============================================
   Variables de Colores Corporativos (Luminosos)
   ============================================ */
:root {
    --verde-intermedio: #66cc00;
    --verde-oscuro: #008c3a;
    --verde-claro: rgba(102, 204, 0, 0.55);
    --verde-muy-claro: rgba(102, 204, 0, 0.15);
    --verde-translucido: rgba(102, 204, 0, 0.25);
    
    /* Colores adicionales para el diseño */
    --blanco: #ffffff;
    --gris-claro: #f5f5f5;
    --gris-medio: #e0e0e0;
    --gris-oscuro: #333333;
    --texto-oscuro: #2c2c2c;
}

/* ============================================
   Reset y Estilos Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--texto-oscuro);
    background-color: var(--blanco);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background-color: var(--verde-muy-claro);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}

body::after {
    content: '';
    position: fixed;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background-color: var(--verde-translucido);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
}

/* ============================================
   Encabezado y Navegación
   ============================================ */
.encabezado-principal {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(102, 204, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.contenedor-navegacion {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-clinica {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.imagen-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.menu-navegacion {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.menu-navegacion a {
    text-decoration: none;
    color: var(--texto-oscuro);
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu-navegacion a:hover {
    color: var(--verde-intermedio);
}

.boton-header {
    margin-left: auto;
}

/* ============================================
   Botones de Contacto Popup
   ============================================ */
.boton-contacto-popup {
    background-color: var(--verde-intermedio);
    color: var(--blanco);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 204, 0, 0.3);
}

.boton-contacto-popup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 204, 0, 0.4);
    background-color: var(--verde-oscuro);
}

.boton-contacto-popup:active {
    transform: translateY(0);
}

/* ============================================
   Popup/Modal de Contacto
   ============================================ */
.popup-contacto {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.popup-contenido {
    background-color: var(--blanco);
    border-radius: 15px;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s ease;
}

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

.cerrar-popup {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--gris-oscuro);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.cerrar-popup:hover {
    color: var(--verde-intermedio);
}

.popup-contenido h2 {
    color: var(--verde-oscuro);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* ============================================
   Sección Hero / Inicio
   ============================================ */
.seccion-inicio {
    background-color: var(--verde-muy-claro);
    color: var(--texto-oscuro);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.seccion-inicio::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background-color: var(--verde-translucido);
    border-radius: 50%;
    z-index: 0;
}

.seccion-inicio::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background-color: var(--verde-claro);
    border-radius: 50%;
    z-index: 0;
}

.seccion-inicio .contenedor-principal {
    position: relative;
    z-index: 1;
}

.contenedor-principal {
    max-width: 1200px;
    margin: 0 auto;
}

.titulo-principal {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--verde-oscuro);
}

.subtitulo-principal {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gris-oscuro);
}

/* ============================================
   Secciones Generales
   ============================================ */
.seccion {
    padding: 4rem 2rem;
}

.seccion-titulo {
    font-size: 2rem;
    color: var(--verde-intermedio);
    text-align: center;
    margin-bottom: 3rem;
}

.contenedor-seccion {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   Sección Servicios
   ============================================ */
.seccion-servicios {
    background-color: var(--verde-muy-claro);
    position: relative;
    overflow: hidden;
}

.seccion-servicios::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -5%;
    width: 250px;
    height: 250px;
    background-color: var(--verde-translucido);
    transform: rotate(45deg);
    border-radius: 20%;
    z-index: 0;
}

.seccion-servicios::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 200px;
    height: 200px;
    background-color: var(--verde-claro);
    transform: rotate(-45deg);
    border-radius: 20%;
    z-index: 0;
}

.seccion-servicios .contenedor-seccion {
    position: relative;
    z-index: 1;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tarjeta-servicio {
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(102, 204, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid var(--verde-translucido);
}

.tarjeta-servicio:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(102, 204, 0, 0.25);
}

.icono-servicio {
    color: var(--verde-intermedio);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Aplica el mismo tamaño a los iconos de Google Material Symbols */
.icono-servicio .material-symbols-outlined {
    font-size: 4rem !important; 
    line-height: 1; /* Ayuda a la alineación vertical */
    width: 4rem;
    height: 4rem;
    display: inline-block;
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
}


.tarjeta-servicio h3 {
    color: var(--verde-oscuro);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tarjeta-servicio p {
    color: var(--gris-oscuro);
    line-height: 1.8;
}

/* ============================================
   Sección Contacto
   ============================================ */
.seccion-contacto {
    background-color: var(--blanco);
    position: relative;
    overflow: hidden;
}

.seccion-contacto::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background-color: var(--verde-muy-claro);
    transform: rotate(30deg);
    border-radius: 30%;
    z-index: 0;
}

.formulario-contacto {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--blanco);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(102, 204, 0, 0.15);
}

.grupo-formulario {
    margin-bottom: 1.5rem;
}

.grupo-formulario label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--verde-intermedio);
    font-weight: 500;
}

.grupo-formulario input,
.grupo-formulario textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gris-medio);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: var(--blanco);
}

.grupo-formulario input:focus,
.grupo-formulario textarea:focus {
    outline: none;
    border-color: var(--verde-intermedio);
    box-shadow: 0 0 0 3px var(--verde-translucido);
}

.grupo-formulario textarea {
    resize: vertical;
    min-height: 120px;
}

.boton-enviar {
    background-color: var(--verde-intermedio);
    color: var(--blanco);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(102, 204, 0, 0.3);
}

.boton-enviar:hover {
    background-color: var(--verde-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 204, 0, 0.4);
}

.boton-enviar:active {
    transform: translateY(0);
}

/* ============================================
   Footer (Nuevo Diseño)
   ============================================ */
.pie-pagina {
    background-color: var(--blanco);
    color: var(--texto-oscuro);
    padding: 3rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--verde-translucido);
}

.pie-pagina::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -5%;
    width: 250px;
    height: 250px;
    background-color: var(--verde-translucido);
    transform: rotate(45deg);
    border-radius: 25%;
    z-index: 0;
}

.pie-pagina::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 200px;
    height: 200px;
    background-color: var(--verde-muy-claro);
    transform: rotate(-30deg);
    border-radius: 30%;
    z-index: 0;
}

.pie-pagina .contenedor-principal {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Fila 1: Mapa a todo lo ancho */
.fila-mapa {
    width: 100%;
    margin-bottom: 2rem;
}

.fila-mapa iframe {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(102, 204, 0, 0.2);
    border: 2px solid var(--verde-translucido);
}

/* Fila 2: 4 columnas */
.footer-inferior {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--verde-translucido);
}

.columna-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(102, 204, 0, 0.1);
}

.columna-footer h3 {
    color: var(--verde-oscuro);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.columna-footer h4 {
    color: var(--verde-intermedio);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Lista de enlaces legales */
.lista-enlaces-legales {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lista-enlaces-legales li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lista-enlaces-legales svg {
    color: var(--verde-oscuro);
    flex-shrink: 0;
}

.lista-enlaces-legales a {
    color: var(--gris-oscuro);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.lista-enlaces-legales a:hover {
    color: var(--verde-oscuro);
    text-decoration: underline;
}

/* Lista de datos de contacto */
.lista-datos-contacto {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lista-datos-contacto li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--gris-oscuro);
}

.lista-datos-contacto svg {
    color: var(--verde-oscuro);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.lista-datos-contacto a {
    color: var(--gris-oscuro);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.lista-datos-contacto a:hover {
    color: var(--verde-oscuro);
    text-decoration: underline;
}

/* Redes Sociales */
.redes-sociales {
    margin-top: 1rem;
}

.iconos-redes {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.iconos-redes a {
    color: var(--verde-oscuro);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--verde-muy-claro);
    box-shadow: 0 2px 8px rgba(0, 140, 58, 0.3);
    border: 2px solid var(--verde-translucido);
}

.iconos-redes a:hover {
    color: var(--blanco);
    background-color: var(--verde-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 140, 58, 0.5);
    border-color: var(--verde-oscuro);
}

/* Columna del botón */
.columna-boton {
    display: flex;
    align-items: center;
    justify-content: center;
}

.columna-boton .boton-contacto-popup {
    width: 100%;
    max-width: 250px;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--verde-translucido);
    color: var(--gris-oscuro);
    font-weight: 500;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .menu-navegacion {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contenedor-navegacion {
        flex-direction: column;
        align-items: flex-start;
    }

    .boton-header {
        margin-left: 0;
        width: 100%;
    }
    
    .titulo-principal {
        font-size: 2rem;
    }
    
    .subtitulo-principal {
        font-size: 1rem;
    }
    
    .seccion {
        padding: 3rem 1rem;
    }
    
    .grid-servicios {
        grid-template-columns: 1fr;
    }

    .footer-inferior {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .fila-mapa iframe {
        height: 250px;
    }

    .popup-contenido {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contenedor-navegacion {
        padding: 1rem;
    }
    
    .formulario-contacto {
        padding: 1.5rem;
    }

    .boton-contacto-popup {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}
