
	/* VARIABLES > COLORES BASE
	======================================================================================================================
	Definición de la paleta de colores base para el proyecto                                                            */

:root {  
  --font-base-size: 15px;
  --dark-pink: #f570a9;
  --medium-pink: #efafbd;
  --light-pink: #fbe3f9;
  --dark-orange: #ea5721;
  --light-orange: #f18930;
  --light-beige: #f4eede;
  --red-pink: #C53A63;
  --purple: #926886;
  --container-width: 90rem;
}


/*
========================================================================================================================
BASE
========================================================================================================================
Definimos los elementos HTML comunes y los elementos estructurales de la página                                       */         

html, body {
  font-size: var(--font-base-size);
  font-family: Lato;
}

h1 {
  font-size: 6rem;
  line-height: 1.1;
  font-family: Lato;
  font-weight: 900;
}
h2 {
  font-size: 3.6rem;
  line-height: 1.1;
}
h3 {
  font-size: 2rem;
  line-height: 1.1;  
}
p {
  font-size: 1.3rem;
  line-height: 1.2;
  color: #515151;
}

.black {
  font-weight: 700;
}

/* RESPONSIVE TIPOGRAFÍAS!!! */
@media (min-width: 800px) and (max-width: 1200px){
  h1 { font-size: 5.0rem; }
  h2 { font-size: 3.2rem; }


  .container-seccion-maps > div:nth-child(1) h2 {
    font-size: var(--24px) !important;
  }
  .container-seccion-maps > div:nth-child(3) h2 {
    font-size: var(--22px) !important;
}

.container-seccion-maps > div:nth-child(3) span {
  font-size: var(--32px) !important;
}

}

@media screen and (max-width: 1025px){
  h1 { font-size: 3.6rem; }
  h2 { font-size: 3.0rem; }
  h3 { font-size: 1.8rem; }
}

@media screen and (max-width: 769px){
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  p  { font-size: var(--15px); line-height: 1.3;}
}

.c-white        { color: #ffffff; }
.c-dark-pink    { color: #f570a9; }
.c-medium-pink  { color: #e4a8cc; }
.c-light-pink   { color: #fbe3f9; }
.c-dark-orange  { color: #ea5721; }
.c-light-orange { color: #f18930; }
.c-light-beige  { color: #f4eede; }

.bg-dark-pink    { background: #f570a9; }
.bg-medium-pink  { background: #e4a8cc; }
.bg-light-pink   { background: #fbe3f9; }
.bg-dark-orange  { background: #ea5721; }
.bg-light-orange { background: #f18930; }
.bg-light-beige  { background: #f4eede; }

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.img-fit {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hr-cta {
  max-width:70px;
  border:1.8px solid #916886;
}

.container {
  max-width: var(--container-width) !important;
}

@media (min-width: 1921px) {
  .container {
    max-width: 110rem !important;
  }
}

a.button {
  text-decoration: none;
}

#landing {
  background-color: #ffffff;
}

.title-ppal {
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: calc(var(--space) * 2);
  margin-bottom: var(--space) ;
  color: var(--grey-600);
  font-size: var(--35px);
}
  .title-ppal::after {
    content: "";
    display: block;
    width: var(--45px); 
    height: var(--2px);
    background-color: #cacaca;
    margin-top: var(--25px);
  }

@media (max-width: 768px) {
  .title-ppal {
    font-size: var(--20px);
    margin-bottom: calc(var(--space) * 2);
  }
    .title-ppal::after {
      height: var(--1px);
      width: var(--30px);
      margin-top: var(--10px);
    }
}

.subtitle {
  color: #505050;
  font-size: var(--30px);
  margin-top: var(--40px);
  margin-bottom: var(--35px);
  padding-bottom: var(--10px);
  border-bottom: var(--2px) solid #cacaca;
}

@media (max-width: 768px) { 
  .subtitle {
    font-size: var(--16px);
    margin-top: var(--30px);
    margin-bottom: var(--25px);
    border-bottom: var(--1px) solid #cacaca;
  }
}

/*
========================================================================================================================
SECCIONES
========================================================================================================================
Definimos las clases que se van a servir en todo el contenido principal de la landing (DESKTOP FIRST)                  */


/* ------------------------------------------ CTA - DESPUÉS DE HERO ------------------------------------------*/
.container-cta {
  background-color: #e8eae0;
  border: var(--2px) solid #cfd2c2;
  max-width: 30rem;
  padding: var(--30px);
  border-radius: var(--20px);
  margin-top: var(--30px);
}
  .container-cta p {
    font-size: var(--22px);
    margin-bottom: 0;
  }

.container-sub-cta {
  max-width: 50rem;
}
  .container-sub-cta p {
    font-size: var(--22px);
  }

@media (max-width:768px) {

  .container-cta {
    margin-top: var(--10px);
  }
  .container-sub-cta {
    max-width: 20rem;
  }
    .container-sub-cta p,
    .container-cta p {
      font-size: var(--18px);
    }
}


/* ------------------------------------------ 3 TARJETAS ------------------------------------------*/
#tres-tarjetas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--70px);
  margin-top: var(--20px);
  margin-bottom: var(--20px);
}

#tres-tarjetas > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #edeee7;
  border-radius: 16px;
  overflow: hidden;
  padding-top: var(--40px);
}

#tres-tarjetas > div img {
  width: auto;
  height: 15rem;
  object-fit: contain;
  margin-bottom: -1rem;
  z-index: 1;
}

#tres-tarjetas > div p {
  background-color: #cfd2c3;
  color: #fff; 
  text-align: center;
  font-weight: bold;
  width: 100%;
  padding: var(--40px);
  margin: 0;
}

@media (max-width:768px) {
  #tres-tarjetas {
    grid-template-columns: 1fr;
    gap: var(--30px);
  }

    #tres-tarjetas > div p {
      font-size: var(--20px);
    }
}

/* ------------------------------------------ FORMULARIO ------------------------------------------*/
#formulario-focus {
  padding: var(--space) calc(var(--space) * 2);
  border: var(--5px) solid #F2C9A9;
  overflow: hidden;
  margin-bottom: var(--40px);
  background-image: url(
    'https://www.clinicaplanas.com/ka/apps/clinicaplanas_assets/assets/home/fondo1b.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

  #formulario-focus input[type="text"], 
  #formulario-focus input[type="email"] {
    width: 100% !important;
    padding: 25px !important;
    padding-left: 0 !important;
    margin-bottom: 5px;
    font-size: var(--22px);
    border-radius: 0;
    border: none;
    border-bottom: var(--2px) solid #989896;
    background-color: transparent;
    color: #414242;
  }

  #formulario-focus input[type="text"]:focus, 
  #formulario-focus input[type="email"]:focus {
    outline: none; 
  }

  ::placeholder {
    text-transform: uppercase;
    color: #414242;
    font-weight: 600;  
  }

  #formulario-focus span.error {
    color: red;
    display: block;
    margin-bottom: 15px;
  }

  #formulario-focus h2 {
    font-size: var(--40px);
    font-weight: 500;
    color: #a09e9f;
  }

    #formulario-focus h2::after {
      content: "";
      display: block;
      width: var(--30px); 
      height: var(--4px);
      background-color: #cacaca;
      margin-top: var(--10px);
    }

  #formulario-focus input[type="checkbox"] {
    appearance: none; 
    -webkit-appearance: none; 
    -moz-appearance: none; 
    margin-right: 5px !important;
    width: 16px; 
    height: 16px;
    border: 2px solid #414242; 
    background-color: transparent; 
    cursor: pointer;
    position: relative;
  }

  #formulario-focus input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    width: 5px;
    height: 8px;
    border: solid #6e5266; 
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  
  #formulario-focus .btn {
    color: var(--grey-400);
    font-size: var(--18px);
  }
    #formulario-focus .btn:hover {
      color: #000;
    }
  #formulario-focus a {
    text-decoration: underline;
  }

  #formulario-focus .form-check {
    display: flex;
    gap: var(--8px);
    margin-bottom: var(--5px);
  }
    #formulario-focus .form-check label {
      margin-bottom: 0;
    }


@media (max-width: 768px) {
  #formulario-focus {
    background-image: url(
    'https://www.clinicaplanas.com/ka/apps/clinicaplanas_assets/assets/home/fondo_form_xs.webp');
    padding: var(--30px);
  }

    #formulario-focus h2 {
      font-size: var(--30px);
    }

    #formulario-focus input[type="text"], 
    #formulario-focus input[type="email"] {
      font-size: var(--18px);
    }

    #formulario-focus .form-check {
      margin-bottom: var(--10px);
    }

    #formulario-focus input[type="checkbox"]#newsletter {
      width: 22px;
    }
}


#container-recaptcha {
  display: flex;
}




#privacy-policy p {
  margin-top: 10px;
  font-weight: 400;
  color: #515151;
}

#privacy-policy p a{
  font-weight: 700;
  color: #515151;
}

/* bloque en grid */
.two-col-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem; /* espacio entre columnas */
  align-items: center;
}

/* columnas internas */
.two-col-block > div {
  width: 100%;
}

/* imagen */
.img-fit {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* título */
.two-col-block .title-ppal {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display:block;
  align-items: left !important;
  justify-content: left !important;
  text-align:left !important;  
}

/* versión móvil */
@media (max-width: 767px) {
  .two-col-block {
    grid-template-columns: 1fr; /* una sola columna */
  }

  /* reordenamos: imagen primero, texto después */
  .two-col-block > div:nth-child(1) {
    order: 2; /* texto */
  }
  .two-col-block > div:nth-child(2) {
    order: 1; /* imagen */
  }

  .two-col-block .title-ppal {
    font-size: 1.4rem;
    text-align: left;
  }

  .two-col-block p {
    text-align: left;
  }
}

select {
  width: 100%;
  max-width: 800px; /* ajusta según tu diseño */
  padding: 12px 40px 12px 12px; /* espacio interno, deja sitio a la flecha */
  border: 3px solid #979797; /* borde gris fino */
  border-radius: 2px; /* esquinas rectas/sutiles */
  background-color: #DCE3E3; /* fondo claro */
  font-size: 16px;
  color: #333;
  appearance: none;       /* quita la flecha nativa */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><path d='M2 4l4 4 4-4' stroke='%23333' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: #888; /* tono más oscuro al enfocar */
}

@media (max-width: 768px) {
    .hidden-xs {
        display: none;
    }

    h2.title-ppal {
        font-size: var(--19px);
        margin-bottom: calc(var(--space) * 2);
    }


}