html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0px;
}


@font-face {
  font-family: 'Miriam Libre Bold';
  src: url('../fonts/MiriamLibre-Bold.woff2') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Miriam Libre';
  src: url('../fonts/MiriamLibre-Regular.woff2') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Incompleeta';
  src: url('../fonts/IncompleetaRegular.woff2') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  /* Tipografías */
  --font-principal: 'Miriam Libre Bold', sans-serif;
  --font-secundaria: 'Miriam Libre', sans-serif;
  --font-terciaria: 'Incompleeta', sans-serif;

  /* Colores base */
  --color-blanco: #ffffff;
  --color-negro: #1a1a1a;
  --color-gris-claro: #f8f8f8;
  --color-gris-medio: #cccccc;
  --color-verde-oscuro: #1D2D21;

  /* Color de acento principal (verde salud) */
  --color-verde: #84c555;
  --color-verde-hover: #4A763B;

  /* Sombras y efectos */
  --sombra-verde: 0 0 5px rgba(46, 125, 50, 0.4);
  --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.05);

    /* Espaciado y bordes */
  --radio-borde: 30px;
  --ancho-max: 1200px;
}



/*SECCIÓN HEADER*/

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px 0px 10px;
    font-family: var(--font-principal);
    height: 100px;
    position: fixed;
    top:0; left: 0; right: 0;
    z-index: 11;
}

#menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-right: 20px;
  z-index: 12;
}

#menu-toggle:focus {
    outline: 2px solid var(--color-verde);
    outline-offset: 2px;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease;
}



.headerlogo_activasalud {
  margin-left: 50px;
  margin-top: 8px;
}

.headerlogo_activasalud img {
  border-radius: 50px;
  height: 60px;
  width: 60px;
  border: solid 2px var(--color-negro);
  box-shadow: 0px 4px 6px var(--color-verde-oscuro);
  transition: transform 0.2s ease;
}

.headerlogo_activasalud img:hover {
  transform: scale(1.1);
}

.headerinfo_activasalud {
  color: white;
  display: flex;
  gap: 20px;
}

.contact-item a {
  text-decoration: none;
  color: rgb(255, 255, 255);
}

.btn-contact_phone,
.btn-contact_email {
  display: inline-block;
  background-color: var(--color-negro);
  border: solid 1px var(--color-verde);
  padding: 8px;
  border-radius: 30px;
  box-shadow: 0px 4px 6px var(--color-verde-oscuro);
  transition: transform 0.2s ease;
  text-decoration: none;
  color: white;
}

.btn-contact_phone:hover,
.btn-contact_email:hover {
  transform: scale(1.1);
}

.atencionadomicilio p {
  background-color: black;
  color: white;
  border: solid 2px var(--color-verde);
  border-radius: 30px;
  padding: 5px 10px 5px 10px;
  box-shadow: 0px 2px 6px var(--color-verde-hover);
}

#headernav nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0px 50px 0px 0px;
}

#headernav nav ul a {
  text-decoration: none;
  color: #ffffff;
  transition: color 0.4s ease;
}

#headernav nav ul a:hover {
  color: var(--color-verde);
}

/* 🖥️ Portátiles medios: 1500px o menos */
@media screen and (max-width: 1500px) {
  .headerinfo_activasalud {
    gap: 10px;
  }

  .atencionadomicilio p {
    font-size: 0.9em;
    padding: 4px 8px;
  }
  #menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

#headernav nav ul {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  padding: 40px 20px;
  gap: 30px;
  z-index: 10;
  transition: all 0.3s ease-in-out;
}

#headernav nav ul.active {
  display: flex;
}
}

/* 🖥️ Portátiles pequeños: 1200px o menos */
@media screen and (max-width: 1200px) {
  .headerinfo_activasalud {
    gap: 10px;
  }

  .atencionadomicilio p {
    font-size: 0.9em;
    padding: 4px 8px;
    display: none;
  }
  #menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  #headernav nav ul {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 70px;
    right: 10px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
  }

  #headernav nav ul.active {
    display: flex;
  }
}

/* 📱 Tablets: 800px o menos */
@media screen and (max-width: 800px) {
  
  .headerinfo_activasalud {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }

  .topheader_contact-text {
    font-size: 0.8em;
  }

  .headerlogo_activasalud {
    margin: 0;
    text-align: center;
  }

  .atencionadomicilio p {
    display: none;
  }

  #headernav nav ul {
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
    align-items: center;
  }

  .btn-contact_phone,
  .btn-contact_email {
    display: none;
  }

}


/* 📲 Móviles: 480px o menos */
@media screen and (max-width: 480px) {

  .headerlogo_activasalud {
    margin-right: -20px;
  }

  .headerinfo_activasalud {
    gap: 20px;
  }

  .btn-contact_phone,
  .btn-contact_email {
    display: flex;
    font-size: 1.3em;
    padding: 6px 10px;
    border: solid 3px var(--color-verde);
  }

  .textoinformacióniconos {
    display: none;
  }

  .topheader_contact-text {
    display: none;
  }


  #headernav nav ul a {
    font-size: 1em;
  }
}

/*FINAL DEL HEADER E INICIO MAIN CONTACTO */


.contacto_pagehero {
  background-image: url(../img/badajoz-fisioterapia.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 700px;
  display: block;
  justify-items: center;
  text-align: center;
  align-content: center;
}

.contacto_pagehero h1 {
  font-family: var(--font-terciaria);
  font-size: 4em;
  color: #ffffff;
  text-shadow: 0px 4px 6px var(--color-verde);
  margin-bottom: 20px;
  font-weight: 400;
}

.contacto_pagehero p {
  margin-top: 20px;
  padding: 0px 20px 0px 20px;
  text-shadow: 0px 0px 6px black;
  letter-spacing: 0.1em;
  font-family: var(--font-secundaria);
  font-size: 1.2em;
  font-weight: 500;
  color: var(--color-gris-claro);
}

.socialmediaicon_contactopage {
    display: flex;
    justify-content: center;
    align-items: center;
    gap:30px;
    list-style: none;
    margin-top: 30px;

}

.socialmediaicon_contactopage img{
    border-radius: 10px;
    transition: transform 0.2s ease;
}


.socialmediaicon_contactopage img:hover {
  transform: scale(1.2);
  box-shadow: 0px 2px 8px #4A763B;
}

@media (max-width: 1024px) {
  .contacto_pagehero {
    height: 500px;
    padding: 40px 20px;
  }

  .contacto_pagehero h1 {
    font-size: 3em;
  }

  .contacto_pagehero p {
    font-size: 1em;
    padding: 0 10px;
  }

  .contacto_pagehero nav ul {
    margin-left: 0;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .contacto_pagehero {
    height: 450px;
    padding: 30px 15px;
  }

  .contacto_pagehero h1 {
    font-size: 2.4em;
  }

  .contacto_pagehero p {
    font-size: 0.95em;
  }

  .contacto_pagehero nav ul {
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .contacto_pagehero {
    height: 600px;
    padding: 40px 10px;
    text-align: center;
  }

  .contacto_pagehero h1 {
    font-size: 2em;
    line-height: 1.2em;
  }

  .contacto_pagehero p {
    font-size: 0.9em;
    letter-spacing: normal;
  }

  .contacto_pagehero nav ul {
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-left: -40px;
  }

  .contacto_pagehero nav ul li img {
    width: 40px;
  }
}


/*FINAL MAIN CONTACTO, INICIO SECCIÓN INFO*/

.contacto_info_section {
  padding: 80px 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 60px;
  box-shadow: 0px -4px 8px black;
}

.info_contacto_form {
  flex: 2 1 500px;
  max-width: 800px;
}

.info_contacto_datos {
    flex: 1 1 300px;
    max-width: 500px;
    font-size: 1.1em;
}

.info_contacto_datos h2 {
  font-family: var(--font-principal);
  margin-bottom: 20px;
}

.info_contacto_datos ul li {
  font-family: var(--font-secundaria);
  margin-bottom: 20px;
  list-style: none;
}

.info_contacto_datos ul li a {
  text-decoration: none;
  color: #84c555;
}

.info_contacto_form h2 { 
    text-align: center;
    margin-bottom: 20px;
    font-family: var(--font-principal);
}

form {
  width: 100%;
  padding: 40px;
  border-radius: 30px;
  background-color: #ffffff;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-gris-medio);
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-family: var(--font-principal);
  color: var(--color-verde-oscuro);
}

input,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-gris-medio);
  border-radius: 12px;
  font-family: var(--font-secundaria);
  font-size: 1em;
  transition: border 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

input:focus,
textarea:focus {
  border-color: var(--color-verde);
  outline: none;
}

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

.btn-enviar {
  background-color: var(--color-verde);
  color: black;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1em;
  font-family: var(--font-principal);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-enviar:hover {
  background-color: var(--color-verde-hover);
  transform: scale(1.03);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-verde); /* Opcional: personaliza el color del check */
}

.form-checkbox a {
  color: var(--color-verde);
  text-decoration: underline;
}

.form-checkbox label {
  margin: 0;
  font-size: 0.95em;
}

@media screen and (max-width: 1024px) {
  .contacto_info_section {
    padding: 60px 30px;
    gap: 40px;
  }

  .info_contacto_form {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .info_contacto_datos {
    flex: 1 1 100%;
    max-width: 100%;
    font-size: 1em;
    text-align: center;
  }

  .info_contacto_datos ul {
    padding-left: 0;
  }

  .info_contacto_datos ul li {
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 768px) {
  .contacto_info_section {
    padding: 50px 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .info_contacto_form,
  .info_contacto_datos {
    max-width: 100%;
    padding: 0 10px;
  }

  .form-checkbox {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-checkbox label {
    font-size: 0.9em;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .btn-enviar {
    width: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .contacto_info_section {
    padding: 40px 15px;
  }

  .info_contacto_datos {
    font-size: 0.95em;
  }

  .info_contacto_form h2,
  .info_contacto_datos h2 {
    font-size: 1.3em;
  }

  input,
  textarea {
    font-size: 0.95em;
  }

  .form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }

  .btn-enviar {
    padding: 12px 24px;
    font-size: 0.95em;
  }
}



/* FINAL FORMULARIO, INICIO MAPA */

.contacto_mapa_section {
    padding: 80px;
    display: block;
    text-align: center;
}

.contacto_mapa_section h2 {
    margin-bottom: 20px;
    font-family: var(--font-principal);
}

.contacto_mapa_section iframe {
  border-radius: 30px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-gris-medio);
}

@media screen and (max-width: 1024px) {
  .contacto_mapa_section {
    padding: 60px 40px;
  }

  .contacto_mapa_section iframe {
    width: 100%;
    height: 400px;
  }
}

@media screen and (max-width: 768px) {
  .contacto_mapa_section {
    padding: 50px 20px;
  }

  .contacto_mapa_section h2 {
    text-align: center;
    font-size: 1.2em;
  }

  .contacto_mapa_section iframe {
    width: 100%;
    height: 350px;
  }
}

@media screen and (max-width: 480px) {
  .contacto_mapa_section {
    padding: 40px 15px;
  }

  .contacto_mapa_section h2 {
    font-size: 1.4em;
  }

  .contacto_mapa_section iframe {
    width: 100%;
    height: 300px;
  }
}



/* FINAL MAPA, INICIO FOOTER */


.footer_activasalud {
  background-color: var(--color-negro);
  color: var(--color-blanco);
  padding: 60px 30px 20px;
  font-family: var(--font-secundaria);
}

.footer_contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  line-height: 2em;
}

.footer_contenedor div {
  flex: 1 1 200px;
}

.footer_logo img {
  margin-bottom: 10px;
  width: 60px;
  border-radius: 50px;
  height: 60px;
}

.footer_logo p {
  font-size: 0.9em;
  margin: 0;
}


.footer_redessociales {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 20px;
  list-style: none;

}

.footer_redessociales img {
  transition: transform 0.3s ease;
  border-radius: 8px;
  height: 40px;
  width: 40px;
}

.footer_redessociales img:hover {
  transform: scale(1.2);
  box-shadow: 0px 2px 8px #4A763B;
}


.footer_enlaces ul,
.footer_contacto ul,
.footer_legal ul {
  list-style: none;
  padding: 0;
}

.footer_enlaces a,
.footer_contacto a,
.footer_legal a {
  color: var(--color-blanco);
  text-decoration: none;
  font-size: 0.9em;
}

.footer_enlaces a:hover,
.footer_contacto a:hover,
.footer_legal a:hover {
  color: var(--color-verde-hover);
  text-decoration: underline;
}

.footer_copy {
  text-align: center;
  margin-top: 40px;
  font-size: 0.8em;
  border-top: 1px solid var(--color-gris-medio);
  padding-top: 20px;
}

.footer_copy a {
  text-decoration: none;
  color: var(--color-verde);
  font-weight: bold;
}

@media (max-width: 768px) {
  .footer_contenedor {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .footer_contenedor div {
    flex: 1 1 100%;
  }

  .footer_redessociales {
    justify-content: center;
  }

  .footer_logo img {
    margin: 0 auto 10px;
    display: block;
  }

  .footer_copy {
    font-size: 0.75em;
    padding-top: 15px;
  }
}


/* COOKIES BANNER */

#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-negro-suave);
  color: #ecf0f1;
  padding: 18px 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  max-width: 900px;
  z-index: 9999;
  gap: 15px;
}

#cookie-banner a {
  color:var(--color-dorado);
  text-decoration: underline;
  margin-left: 10px;
  transition: color 0.3s ease;
}

#cookie-banner a:hover {
  color:var(--color-naranja);
}

#cookie-banner div:first-child {
  flex: 1 1 300px;
}

#cookie-banner button {
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
  min-width: 120px;
}

#btn-accept-necessary {
  background: #7f8c8d;
  color: black;
}

#btn-accept-necessary:hover {
  background: #95a5a6;
}

#btn-accept-all {
  background: var(--color-dorado);
  color: black;
}

#btn-accept-all:hover {
  background: #16a085;
}

/* Responsive: en pantallas muy pequeñas el banner se apila */
@media (max-width: 480px) {
  #cookie-banner {
    flex-direction: column;
    text-align: center;
    width: 90%;
  }

  #cookie-banner div:first-child {
    flex: none;
    margin-bottom: 12px;
  }

  #cookie-banner button {
    min-width: 100%;
    margin-bottom: 20px;
  }
}

/* COOKIES BANNER */

#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color:  var(--color-negro);
  padding: 18px 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  max-width: 900px;
  z-index: 9999;
  gap: 15px;
  font-family: var(--font-secundaria);
}

#cookie-banner a {
  color:#84c555;
  text-decoration: underline;
  margin-left: 10px;
  transition: color 0.3s ease;
}

#cookie-banner a:hover {
  color:var(--color-verde-hover);
}

#cookie-banner div:first-child {
  flex: 1 1 300px;
}

#cookie-banner button {
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
  min-width: 120px;
}

#btn-accept-necessary {
  background: #7f8c8d;
  color: black;
}

#btn-accept-necessary:hover {
  background: #95a5a6;
}

#btn-accept-all {
  background: #84c555;
  color: black;
}

#btn-accept-all:hover {
  background: #16a085;
}

/* Responsive: en pantallas muy pequeñas el banner se apila */
@media (max-width: 480px) {
  #cookie-banner {
    flex-direction: column;
    text-align: center;
    width: 90%;
  }

  #cookie-banner div:first-child {
    flex: none;
    margin-bottom: 12px;
  }

  #cookie-banner button {
    min-width: 100%;
    margin-bottom: 20px;
  }
}