/*
--------------------------------------------------
 Estilos mejorados para la Landing Page de Alivium Medical Center (AMC)
 Documentación en español con mejoras en UX/UI
--------------------------------------------------
*/

/* Importación de fuentes corporativas */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans&display=swap');

/* Estilos generales */
body {
    font-family: 'Open Sans', sans-serif;
    color: #8A8A8A; /* Gris corporativo para textos */
    background-color: #FFFFFF; /* Fondo blanco para limpieza visual */
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #007A33; /* Verde institucional */
}

/* Sección Hero Mejorada */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('img/bienestar-movilidad-salud-adultos-mayores-alivium-medical-center.jpg') center/cover no-repeat;
}

/* Overlay con menor opacidad para mayor visibilidad del fondo */
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); 
    z-index: 1;
}

.hero-text {
    background: rgba(0, 0, 0, 0.4); /* Fondo oscuro para mejorar el contraste */
    padding: 50px;
    border-radius: 8px;
}

/* Contenedor del contenido para mejor alineación */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 80%;
}

/* Logo dentro del Hero */
.hero-logo {
    width: 150px;
    margin-bottom: 20px;
}

/* Título con mejor peso visual */
.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}

/* Subtítulo más claro */
.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 50px;
}

/* Botón con mayor impacto */
.hero .btn-primary {
    background-color: #007A33;
    border: none;
    color: #FFFFFF;
    text-decoration: none;
    padding: 16px 35px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 10px; /* Se aumentó el margen superior */
    transition: all 0.3s;
}

/* --------------------------------------------------
   Botones Hero con icono SVG
   -------------------------------------------------- */
.hero-buttons {
  display: inline-flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Estilos genéricos para todos los iconos dentro de btn */
.btn-icon {
  width: 1.2em;             /* tamaño relativo al texto */
  height: 1.2em;
  margin-right: 0.5em;
  vertical-align: middle;   /* alinea con el texto */
  fill: currentColor;       /* si el SVG usa fill="currentColor" */
}

/* --------------------------------------------------
   Botón Principal (WhatsApp)
   -------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background-color: #007A33;
  border: 2px solid #007A33;
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s, border-color 0.3s;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #005a24;
  border-color: #005a24;
}

/* --------------------------------------------------
   Botón Secundario (Vía web)
   -------------------------------------------------- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #FFFFFF;
  color: #007A33;
}




/* Estilos para la sección Sobre Nosotros */
.nosotros-section {
    background-color: #F8F9FA; /* Fondo suave */
    padding: 80px 20px;
    border-radius: 10px;
}

.btn-primary {
  background-color: #007A33;      /* verde institucional */
  border-color: #007A33;
  font-weight: bold;
}
.btn-primary:hover {
  background-color: #005a24;      /* verde más oscuro al pasar el ratón */
  border-color: #005a24;
}

/* Título más destacado */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #007A33; /* Verde institucional */
    margin-bottom: 20px;
}

/* Texto con mejor legibilidad */
.nosotros-text {
    font-size: 1.1rem;
    color: #555; /* Más oscuro para mejor contraste */
    line-height: 1.6;
}

/* Contenedor general */
.nosotros-section {
    padding: 80px 20px;
}

/* Ajustes para la imagen */
.nosotros-section img {
    width: 100%;
    max-width: 100%; /* Evita que la imagen se expanda más de su contenedor */
    height: auto;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}


/* Botón optimizado */
.nosotros-section .btn-primary {
    background-color: #007A33;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.nosotros-section .btn-primary:hover {
    background-color: #005a24;
    transform: scale(1.05);
    
}


/* Estilos para la sección de Servicios */
#servicios {
    padding: 80px 20px;
    background-color: #F8F9FA;
}

#servicios h2 {
    text-align: center;
    margin-bottom: 40px;
}

#servicios .servicio {
    text-align: center;
    margin-bottom: 30px;
}

#servicios img {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

#servicios h3 {
    font-size: 1.3rem;
    font-weight: bold;
}

#servicios p {
    font-size: 1rem;
}

/* Estilos para la sección de testimonios */
#testimonios {
    padding: 80px 20px;
    background-color: #F8F9FA;
    text-align: center;
}

#testimonios p {
    font-style: italic;
    font-size: 1.2rem;
    color: #333;
}

/* Sección de contacto */
#contacto {
    padding: 80px 20px;
    text-align: center;
}

#contacto form {
    max-width: 600px;
    margin: 0 auto;
}

#contacto input, #contacto textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #8A8A8A;
    border-radius: 5px;
}

#contacto button {
    background-color: #007A33;
    border: none;
    padding: 14px 30px;
    font-size: 1.2rem;
    color: white;
    border-radius: 5px;
    transition: background 0.3s;
}

#contacto button:hover {
    background-color: #005a24;
}

/* botón flotante redondo */
  .whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #007A33;        /* Verde Esperanza AMC */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;                    /* Siempre por encima */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s, background-color 0.2s;
  }
  .whatsapp-button:hover {
    transform: scale(1.1);
    background-color: #005a24;       /* Versión oscura al pasar el ratón */
  }
  .whatsapp-button svg {
    width: 28px;
    height: 28px;
    fill: #FFFFFF;
  }






/* Footer institucional AMC */
.footer-amc {
  background-color: #007A33;
  color: #FFFFFF;
  font-family: 'Open Sans', sans-serif;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-lema {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.footer-col {
  text-align: center;
}

.footer-contact li,
.footer-social li {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.5;
}

.footer-contact a,
.footer-social a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-social a:hover {
  text-decoration: underline;
  color: #C8F5DF;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease-in-out;
  color: #FFFFFF;
}

.footer-contact a:hover .footer-icon,
.footer-social a:hover .footer-icon {
  transform: scale(1.2);
}


/* Estilos Páginas Nosotros */

.nosotros-section img:not(.valor-icon) {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #007A33;
  margin-bottom: 1rem;
  text-align: center; /* <- Asegurá que esto exista */
}


.section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #007A33;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.nosotros-text.lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: #007A33;
  margin-bottom: 1rem;
}

.nosotros-list {
  padding-left: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.nosotros-list li {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}


/* Hero Nosotros */
  
.hero-nosotros {
  background: linear-gradient(rgba(0,122,51,0.7), rgba(0,122,51,0.1)), url('img/hero_nosotros.jpg') center/cover no-repeat;
  color: #FFFFFF;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-nosotros p,
.hero-nosotros h1 {
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.hero-nosotros a.btn:hover {
  background-color: #005C29;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}


/*Nuestra historia */
/* Contenedor general */
.seccion-historia {
  margin: 4rem auto;
  padding: 0 1rem;
  max-width: 1100px;
}

/* Distribución horizontal en desktop, vertical en mobile */
.contenedor-historia {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

/* Imagen cuadrada */
.historia-imagen {
  flex: 0 0 300px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* La imagen dentro del contenedor */
.historia-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Contenido de texto */
.historia-texto {
  flex: 1;
  min-width: 260px;
}


/* Filosofía y Valores */

.valor-card {
  background-color: #FFFFFF;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e0e0e0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease;
}



.valor-card:hover {
  transform: translateY(-5px);
}



.filosofia-valores .valor-icon {
    display: block;       /* para centrarlo bien */
    margin: 0 auto 1rem;  /* opcional: centrar y separar del título */
    width: 48px;
    height: 48px;
    max-width: none;      /* anula cualquier max-width anterior */
    filter: invert(37%) sepia(80%) saturate(1940%) hue-rotate(78deg) brightness(92%) contrast(91%);
}


.valor-card h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #007A33;
  margin-bottom: 0.5rem;
}

.valor-card p {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}



/* Nuestro enfoque */

/* --- Nuestro Enfoque Médico --- */
#enfoque .section-subtitle,
#enfoque .nosotros-text.lead {
  text-align: center;
}

/* Opcional: justificar el cuerpo de texto */
#enfoque .nosotros-text {
  text-align: justify;
  margin-bottom: 1.25rem;
}

/* Ajustes de imagen */
#enfoque img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}








/* Estilos responsivos */
@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 80px 20px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero .btn-primary {
        padding: 14px 28px;
        font-size: 1rem;
    }
    .nosotros-section .row {
        flex-direction: column; /* Primero la imagen, luego el texto */
        text-align: center;
    }

    
    #servicios .col-md-4 {
        margin-bottom: 20px;
    }
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
        font-size: 20px;
        padding: 12px;
    }

    .footer-amc .row {
    flex-direction: column;
    gap: 2rem;
  }
.seccion-historia .row {
    flex-direction: column;
    text-align: center;
  }

#enfoque .col-md-6:first-child {
    margin-bottom: 1.5rem;
  }

}
