/* FUENTES */

@font-face {
  font-family: 'Helvetica57';
  src: url('../fonts/helvetica-57-cond.woff2') format('woff2'),
       url('../fonts/helvetica-57-cond.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica67';
  src: url('../fonts/helvetica-67-cond.woff2') format('woff2'),
       url('../fonts/helvetica-67-cond.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Helvetica57', Arial, sans-serif; /* para textos normales */
    color: #4e4d4e;
}

h1, h2, h3 {
  font-family: 'Helvetica57', Arial, sans-serif; /* para títulos */
}

h2 {
    font-size: 19px;
}

h3 {
    font-size: 34px;
    line-height: 1.2;
}

.container {
  max-width: 90%;
    margin: 0 auto;
}

/* =========================
   MENÚ MOBILE-FIRST
========================= */

/* Header */
.header {
  padding: 15px 0px;
  background: #fff;
  position: relative;
  z-index: 1000;
}

.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
}

/* Logo */

.logo {
  display:block;
    font-family: 'Helvetica67', sans-serif;
}

.logo a {
  font-family: 'Helvetica67', sans-serif;
  font-size: 24px;
  text-decoration: none;
  color: #000;
}

.header .logo-menu a {
  font-family: 'Helvetica67', sans-serif;
  font-weight: normal; /* tu Helvetica67 ya es bold/condensed */
  font-size: 24px;
  text-decoration: none;
  color: #000;
}

/* Menú principal (nav) */
.nav {
  position: fixed;
  top: 0;
  right: -100%;           /* oculto por defecto */
  width: 250px;
  height: 100vh;
  background: #fff;
  transition: right 0.3s ease;
  padding: 60px 20px;
}

.nav ul {
  display: flex;
  flex-direction: column;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #4e4d4e;
  text-decoration: none;
  font-family: 'Helvetica67', sans-serif;
  font-weight: normal;
  font-size: 18px;
}

.nav a.urgencias {
  color: #c30050;
}

/* Botón hamburguesa con 3 líneas */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;   /* cambiar de relative a fixed */
  top: 0px;         /* ajusta según padding del header */
  right: 0px;       /* alineado a la derecha */
  z-index: 1001;     /* siempre por encima del nav */
}

.hamburger span {
  display: block;
  height: 4px;       /* grosor de la línea */
  width: 28px;       /* ancho de la línea */
  background: #4e4d4e;
  border-radius: 2px;
}

/* Nav móvil inicialmente oculto */
.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100vh;
  background: #fff;
  padding: 60px 20px;
  transition: right 0.3s ease;
  z-index: 1000;   /* menor que el botón */
}

/* =========================
   HERO BANNER
========================= */

.logo-findmed {
    max-width: 50%;
    margin-bottom: 30px;
}

.hero-txt h1 {
    color: #15397a;
    font-size: 34px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero-txt p {
    font-size: 21px;
    margin-bottom: 30px;
}

.main-button {
    display: inline-block;
      padding: 14px 28px;
      background-color: #c30050;
      color: #fff;
      text-decoration: none;
      font-family: 'Helvetica67', sans-serif;
      font-size: 16px;
      border-radius: 6px;
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.main-button:hover {
    background-color: #a00042;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.hero {
    margin-bottom: 80px;
}

/* =========================
   NUESTRAS SOLUCIONES
========================= */

.soluciones-titulos {
    text-align: center;
    margin-bottom: 45px;
}

.soluciones-titulos h2 {
    color: #3a6fb3;
}

.soluciones-contenedor {
    text-align: center;
}

.soluciones-box {
    max-width: 70%;
    margin: auto;
}

.soluciones-icon {
    max-width: 130px;
    overflow: hidden;
    margin: auto;
    margin-bottom: 20px;
}

.soluciones-txt {
    font-size: 21px;
    margin-bottom: 35px;
}

/* =========================
   QUIENES SOMOS
========================= */

.somos {
    margin-bottom: 60px;
}

.somos-inner {
    background-color: #3a6fb3;
    color: #fff;
}

.somos-txt {
    padding: 28px 20px;
}

.somos-txt h2 {
    font-family: 'Helvetica57', sans-serif;
    font-size: 26px;
    margin-bottom: 18px;
}

.somos-txt p {
    margin-bottom: 18px;
}

/* =========================
   TESTIMONIOS
========================= */

.testimonios {
    margin-bottom: 30px;
}

.pacientes {
    max-width: 80%;
    margin: auto;
    margin-bottom: 120px;
    position: relative;
}

.pacientes img {
    margin: auto;
}

.pacientes p {
    background-color: #15397a;
    color: #fff;
    font-size: 32px;
    line-height: 1.2;
    padding: 20px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 80%;
    text-align: center;
}

.testimonios-slider {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  width: 100%;
  flex: 0 0 100%;
  display: flex;
  flex-direction: column-reverse;
}

.slider-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.slider-img img {
    width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slider-txt {
    padding: 15px 0px;
}

.slider-txt h2 {
    color: #3a6fb3;
}

.slider-txt h3 {
    color: #15397a;
    margin-bottom: 60px;
}

.slider-txt p {
    margin-bottom: 50px;
}

.slider-txt h4 {
    color: #15397a;
    font-size: 18px;
}

/* =========================
   ASEGURADORAS
========================= */

.aseguradoras {
    background-color: #3a6fb3;
}

.contenedor-aseguradora {
    max-width: 70%;
    margin: auto;
    padding: 60px 0;
}

.contenedor-aseguradora h2 {
    color: #fff;
    margin-bottom: 28px;
}

.aseguradora-txt {
    background-color: #fff;
    padding: 40px;
}

.aseguradora-txt h3 {
    padding: 18px 0px 35px 0px;
    color: #15397a;
}

/* =========================
   CONTACTO
========================= */

.contacto {
    background-color: #ececec;
}

.contenedor-contacto {
    max-width: 70%;
    margin: auto;
}

.flex-contacto {
    padding: 45px 0;
}

.contacto-txt {
    margin-bottom: 40px;
}

.contacto-txt h2 {
    color: #3a6fb3;
}

.contacto-txt h3 {
    margin-bottom: 50px;
}

.ubicacion {
    color: #3a6fb3;
    margin-top: 60px;
}

/* FORMULARIO */

.contacto-form {
    background-color: #fff;
    border-radius: 18px;
    padding: 25px;
}

.form-group{
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group label{
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  color: #3f3e3e;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea{
  width: 100%;
  background-color: #ececec;
  border: none;
  padding: 12px 14px;
  border-radius: 2px;
  font-size: 16px;
  font-family: inherit;
}

/* BOTÖN */

.btn-switch{
  position: relative;
  width: 125px;
  height: 38px;
  background: #3a6fb3;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 5px;
  overflow: hidden;
}

/* círculo */
.switch-circle{
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  position: absolute;
  left: 5px;
  transition: transform .4s ease;
}

/* texto */
.switch-text{
  width: 100%;
  text-align: center;
  color: white;
  font-weight: 600;
  transition: .3s;
}

/* Botón activo */

.btn-switch.active{
  background: #d62828;
}

.btn-switch.active .switch-circle{
  transform: translateX(85px);
}

.btn-switch.active .switch-text{
  content: "Enviado";
}

/* =========================
   FOOTER
========================= */

footer {
    background-color: #15397a;
    padding-bottom: 45px;
}

.contenedor-footer {
    width: 90%;
    margin: auto;
}

.footer-flex {
    padding: 60px 0 0 ;
}

.logo-footer {
    width: 40%;
}

.rrss {
    display: flex;
    justify-content: space-between;
    margin: 45px 0;
}

.box-icon-rrss {
    width: 10%;
}

.divider{
  border: none;
  height: 1px;
  background: #fff;
  margin: 40px 0;
}

.copyright-box a, 
.copyright-box p {
    color: #fff;
}

/* =========================
   MEDIA QUERIES
========================= */
@media (min-width: 780px) {

  /* Ocultar hamburguesa en desktop */
  .hamburger {
    display: none;
  }

  /* Menú horizontal visible */
  .nav {
    position: static;
    width: auto;
    height: auto;
    display: block;
    padding: 0;
  }

  .nav ul {
    flex-direction: row;
    gap: 30px;
  }

  .nav a {
    font-size: 16px; /* ajustar tamaño para desktop si quieres */
  }
    
    /* Hero Banner */
    
    .logo-findmed {
        max-width: 45%;
        margin-bottom: 45px;
    }
    
    .hero-txt h1 {
        font-size: 48px;
        line-height: 1.2;
        margin-bottom: 35px;
    }
    
    .main-button {
        font-size: 24px;
    }
    
    /* Quienes somos */
    
    .somos-txt {
        padding: 60px 30px;
    }
    
    .somos-txt p {
        margin-bottom: 36px;
    }
    
    /* Footer */
    
    .logo-footer {
        width: 20%;
        margin: auto;
    }

    .box-icon-rrss {
        width: 5%;
    }
    
    .copyright-box {
        flex-direction:row;
      justify-content:center;
      gap:10px;
        }
    
    .copyright br{
      display:none;
    }
    
    .contenedor-footer {
        width: 80%;
    }
    
}

@media (min-width: 1080px) {
    
    /* Menú */
    
    .logo a {
        display: none;
    }
    
    /* Hero Section */
    
    .hero {
        display: flex;
        flex-direction: row-reverse;
    }
    
    .logo-findmed {
        max-width: 28%;
        margin-bottom: 45px;
    }
    
    .hero-img {
        width: 50%;
    }
    
    .hero-img img {
        width: 100%;
    }
    
    .hero-txt {
        width: 50%;
    }
    
    .logo-findmed {
        max-width: 40%;
    }
    
    .hero-txt h1 {
        font-size: 42px;
        line-height: 1.2;
    }
    
    /* Soluciones */
    
    .soluciones-contenedor {
        display: flex;
    }
    
    /* Quiénes somos */
    
    .somos-inner {
        display: flex;
    }
    
    .somos-txt {
        padding: 20px 30px;
    }
    
    .somos-txt h3 {
        font-size: 21px;
    }
    
    /* Testimonios */
    
    .testimonios-inner {
        display: flex;
        justify-content: space-between;
    }
    
    .slide {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .pacientes {
        width: 33%;
        margin: 0;
    }
    
    .pacientes img {
        width: 100%;
    }
    
    .pacientes p {
        transform: translate(-50%, -20%);
    }
    
    .testimonios-slider {
        width: 64%;
    }
    
    .slider-img {
        width: 43%;
    }
    
    .slider-txt {
        width: 53%;
    }
    
    .slider-img {
        height: 480px;
        overflow: hidden;
    }
    
    /* Aseguradoras */
    
    .flex-aseguradora {
        display: flex;
    }
    
    .aseguradora-img {
        width: 40%;
        height: 380px;
    }
    
    .aseguradora-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      object-position: center;
    }
    
    .aseguradora-txt {
        width: 60%;
        height: 380px;
    }
    
    .aseguradora-txt {
        padding: 20px 25px;
    }

    .aseguradora-txt h3 {
        padding: 10px 0 17px 0;
    }
    
    /* Contacto */
    
    .flex-contacto{
    display:flex;
    align-items:flex-start;
    gap:60px;
  }

  .contacto-txt{
    flex:1;
  }

  .contacto-form{
    flex:0 0 420px;
  }
    
    /* Footer */ 
    
    .contenedor-footer {
        width: 70%;
    }  
}

@media (min-width: 1360px) {
      .nav a{
        font-size: 21px;
      }
    
    .soluciones-box {
        width: 28%;
    }
    
    .soluciones-titulos {
        margin-bottom: 65px;
    }
    
    .soluciones-contenedor {
        margin-bottom: 40px;
    }
    
    .somos-txt {
        padding: 40px;
    }
    
    .somos-txt h2 {
        font-size: 32px;
        margin-bottom: 28px;
    }
    
    .somos-txt h3 {
        font-size: 24px;
    }
    
    .pacientes {
        width: 33%;
        height: 450px;
    }
    
    .pacientes img {
        width: 100%;
        height: 100%;
  object-fit: cover;
  object-position: center;
    }
    
    .pacientes p {
        transform: translate(-50%, 50%);
    }
    
    .testimonios-slider {
        width: 64%;
    }
    
    .slider-img {
        width: 43%;
        height: 520px;
    }
    
    .slider-txt {
        width: 53%;
    }

    .contenedor-footer {
        width: 50%;
    } 
    
}

@media (min-width: 1920px) {
    
    .container {
      max-width: 1600px;
    }
    
    .nav a{
        font-size: 32px;
      }
    
    .hero-txt {
        margin-top: 150px;
        width: 47%;
    }
    
    .hero-img {
        width: 53%;
    }
    
    .somos-txt {
        padding: 50px;
    }
    
    .somos-txt h2 {
        font-size: 40px;
        margin-bottom: 28px;
    }
    
    .somos-txt h3 {
        font-size: 28px;
    }
    
    .somos-txt p {
        font-size: 21px;
    }
    
    .slider-txt {
        font-size: 24px;
    }
    
    .contenedor-aseguradora h2 {
        font-size: 28px;
    }
    
    .aseguradora-txt p {
        font-size: 24px;
    }
    
    .contacto-txt {
        margin-top: 70px;
    }
    
    .contacto-txt p, 
    .contacto-txt a {
        font-size: 24px;
    }
    
}

/* =========================
   ANIMACIONES
========================= */

.fade-in{
  opacity:0;
  transition:opacity .9s ease;
}

.fade-up{
  opacity:0;
  transform:translateY(25px);
  transition:opacity .9s ease, transform .9s ease;
}

.show{
  opacity:1;
  transform:translateY(0);
}