/*
Theme Name: Tema web Irantzu
Theme URI: https://ikeralvarez.com
Theme Author: Iker Álvarez
Theme Author URI: https://ikeralvarez.com
Theme Description: Tema web para el negocio de Irantzu.
Theme Version: 1.0
Theme License: GNU General Public License v2 or later
Theme License URI: http://www.gnu.org/licenses/gpl-2.0.html
Theme Text Domain: wp-theme



/* Aquí puedes comenzar a escribir tus estilos CSS */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  src: url("/wp-content/themes/wp-theme/assets/fonts/Manrope-Light.ttf");
}
/* Variables CSS */
:root {
  /* Colores */
  --primary-color: #3b82f6;
  --primary-color-light: rgba(59, 130, 246, 0.1);
  --text-dark: #1f2937;
  --text-gray: #4b5563;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --border-gray: #d1d5db;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
  0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --primary-dark: #1e40af; /* blue-800 */
  --black: #000000;
  --black-90: rgba(0, 0, 0, 0.9);
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.9);
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --color-black: #000;
  --color-blue-500: #3b82f6; /* Tailwind blue-500 */
  --color-blue-600: #2563eb; /* Tailwind blue-600 */
  --color-gray-100: #f3f4f6; /* Tailwind gray-100 */
  --color-gray-300: #d1d5db; /* Tailwind gray-300 */
  --color-gray-400: #9ca3af; /* Tailwind gray-400 */
  --color-gray-600: #4b5563; /* Tailwind gray-600 */
  --color-white: #fff;
  --color-white-90: rgba(255, 255, 255, 0.9);
  --color-black-90: rgba(0, 0, 0, 0.9);
  
  /* Espaciados */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --spacing-2: 0.5rem; /* 8px */
  --spacing-3: 0.75rem; /* 12px */
  --spacing-4: 1rem; /* 16px */
  --spacing-6: 1.5rem; /* 24px */
  --spacing-8: 2rem; /* 32px */
  --spacing-16: 4rem; /* 64px */
  --spacing-24: 6rem; /* 96px */
  
  /* Tipografía */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem; /* 48px */
  --font-weight-bold: 700;
  --font-weight-semibold: 600;
  
  /* Bordes */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  
  /* Tamaños de texto */
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Sombras */
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
  0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
  0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Bordes */
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  
  /* Transiciones */
  --transition: all 0.3s ease;
  
  /* Otros */
  --min-height-90vh: 90vh;
  --max-width-3xl: 48rem; /* 768px */
  --border-radius-lg: 0.5rem; /* 8px */
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
  0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition-duration-300: 0.3s;
  --transition-timing-function: ease-in-out;
}



body {
  font-family: "Manrope", sans-serif;
}
html {
  scroll-behavior: smooth;
}

/* Navbar y menú hamburguesa */
.navbar {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: rgb(255, 255, 255);
  height: 10vh;
  transition: height 0.4s ease-in-out;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}


.nav-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 1em;
  border-bottom: 1px solid transparent;
  transition: font-size 0.3s ease, border-bottom 0.5s ease;
}
.nav-links a:hover {
  color: var(--primary-color);
  font-size: 1.05em;
}
.nav-links a:active {
  border-bottom: 1px solid var(--primary-color);
}


.hamburguesa {
  display: none;
  font-size: 2em;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.scrolled {
  /* background-color: #000000c6; */
  height: 8vh;
}

.scrolled .nav-links {
  /* background-color: transparent; */
}
.scrolled .nav-links a {
  /* color: white; */
}

/* Responsive con animación */
@media (max-width: 1000px) {
  .hamburguesa {
    display: block;
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
  }
  .hamburguesa span {
    height: 4px;
    width: 100%;
    background-color: rgb(75 85 99);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }
  /* Animación al hacer clic */
  .hamburguesa.activo span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
  }
  
  .hamburguesa.activo span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburguesa.activo span:nth-child(3) {
    transform: rotate(-45deg) translateY(-13px);
  }
  
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background-color: #fff;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
  }
  
  .nav-links.abierto {
    max-height: 300px;
    /* Valor suficiente para mostrar todos los enlaces */
  }
  
  .nav-links li {
    padding: 10px 0;
    text-align: center;
  }
  
  .scrolled .nav-links {
    top: calc(60px - 2vh); /* Ajusta la posición al hacer scroll */
    /* margin-top: 13px; */
    /* background-color: #000000c6; */
  }
  .scrolled .hamburguesa span {
    /* background-color: white; */
  }
}


/* Hero */


/* Animaciones */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section (Bloque: .hero) */
.hero {
  margin-top: 10vh;
  position: relative;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8), var(--color-blue-500));
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
  overflow: hidden; /* Asegura que el gradiente se vea bien */
  min-height: var(--min-height-90vh);
  padding: 0 var(--spacing-8); /* Espacio horizontal */
  gap: 40px;
}


.hero__overlay {
  position: absolute;
  inset: 0;
  background-image: url('img/hero.jpg'); /* Asegúrate de que la ruta de la imagen sea correcta */
  background-size: cover;
  background-position: top;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

.hero__content {
  position: relative;
  z-index: 10; /* Asegura que el contenido esté por encima del overlay */
  margin-top: 10vh; /* Espacio superior para el contenido */
  width: 100%; /* Para que el max-w-3xl funcione */
}

.hero__main-info {
  max-width: var(--max-width-3xl);
  margin: 0; /* Asegura que no haya margin-left/right por defecto */
}

.hero__nombreIrantzu{
  color: var(--primary-color);
  font-size: 2em;
  text-align: center;
  /* width: 100%; */
  display: inline-block;
  margin-bottom: 24px;
  border-bottom: 1px solid white;
}

.hero__title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--spacing-6);
}

.hero__card-title{
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-blue-500);
  margin-bottom: var(--spacing-2);  
}

@media (min-width: 768px) { /* md breakpoint */
  .hero__title {
    font-size: var(--font-size-5xl);
  }
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-white-90);
  margin-bottom: var(--spacing-8);
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

@media (min-width: 640px) { /* sm breakpoint */
  .hero__buttons {
    flex-direction: row;
  }
}

.hero__button {
  display: inline-block;
  font-weight: var(--font-weight-semibold);
  padding: var(--spacing-3) var(--spacing-8);
  border-radius: var(--border-radius-lg);
  transition: background-color var(--transition-duration-300) var(--transition-timing-function),
  border-color var(--transition-duration-300) var(--transition-timing-function);
  text-align: center;
  text-decoration: none; /* Eliminar subrayado por defecto */
}

.hero__button--primary {
  background-color: var(--color-white);
  color: var(--color-blue-500);
}

.hero__button--primary:hover {
  background-color: var(--color-gray-100);
}

.hero__button--secondary {
  background-color: var(--color-blue-500);
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.hero__button--secondary:hover {
  background-color: var(--color-blue-600);
}

.hero__cards-wrapper {
  position: relative;
  z-index: 20; /* Asegura que las cards estén por encima del contenido principal */
  padding-bottom: var(--spacing-16);
  width: 100%; /* Para que el max-w-3xl funcione */
}

.hero__cards-grid {
  display: grid;
  gap: var(--spacing-6);
}

@media (min-width: 768px) { /* md breakpoint */
  .hero__cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) { /* lg breakpoint */
  .hero__cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Hero Card (Bloque: .hero-card) */
.hero-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-6);
  transition: all var(--transition-duration-300) var(--transition-timing-function);
  text-decoration: none; /* Eliminar subrayado por defecto */
  opacity: 0; /* Inicialmente oculto para la animación */
  animation: slide-up 0.6s forwards;
}

.hero-card:hover {
  box-shadow: var(--shadow-2xl);
  transform: translateY(-4px); /* -translate-y-1 es aprox 4px */
  background-color: var(--color-gray-300);
}

.hero-card:active {
  background-color: var(--color-gray-400);
}

.hero-card--delay-0 { animation-delay: 0s; }
.hero-card--delay-1 { animation-delay: 0.2s; } /* animation-delay-100 */
.hero-card--delay-2 { animation-delay: 0.4s; } /* animation-delay-200 */
.hero-card--delay-3 { animation-delay: 0.6s; } /* animation-delay-300 */


.hero-card__title {
  color: var(--color-blue-500);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-2);
}

.hero-card__description {
  color: var(--color-gray-600);
}

/* Formulario de contacto */
/* Contenedor general */
.wpcf7-form {
  background-color: white;
  border-radius: 0.75rem;
  /* rounded-xl */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  /* p-8 */
  max-width: 100%;
}

/* Espaciado entre los campos */
.wpcf7-form br {
  display: none;
}

/* Etiquetas */
.wpcf7-form label {
  display: block;
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 500;
  /* font-medium */
  color: #374151;
  /* text-gray-700 */
  margin-bottom: 0.5rem;
  margin-top: 1rem;
  /* mb-1 */
}

/* Inputs, selects, textareas */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-select,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-tel {
  width: 100%;
  padding: 0.75rem 1rem;
  /* px-4 py-3 */
  border: 1px solid #d1d5db;
  /* border-gray-300 */
  border-radius: 0.5rem;
  /* rounded-lg */
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wpcf7-form-control.wpcf7-textarea {
  font-size: 16px;
  line-height: 1.5;
  height: calc(1.5 * 5 * 16px);
}

.wpcf7-form-control:focus {
  border-color: #3b82f6;
  /* focus:border-primary (azul) */
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
  /* focus:ring-2 focus:ring-primary */
  outline: none;
}

/* Botón de envío */
.wpcf7-form-control.wpcf7-submit {
  width: 100%;
  background-color: #3b82f6;
  /* bg-blue-500 */
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  /* px-6 py-3 */
  border-radius: 0.5rem;
  /* rounded-lg */
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.wpcf7-form-control.wpcf7-submit:hover {
  background-color: rgba(59, 130, 246, 0.8);
  /* hover:bg-blue-500/80 */
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.wpcf7-form-control.wpcf7-submit:active {
  background-color: rgba(59, 130, 246, 0.9);
  /* active:bg-blue-500/90 */
  transform: scale(0.95);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Spinner oculto si no está activo */
.wpcf7-spinner {
  display: none;
}

/* Formulario de contacto */

/* Componente Contacto */
.contacto {
  padding: var(--space-3xl) 0;
  background-color: var(--bg-light);
}

.contacto__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.contacto__header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto var(--space-2xl) auto;
}

.contacto__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.contacto__subtitle {
  color: var(--text-gray);
  font-size: 1rem;
}

.contacto__grid {
  display: grid;
  gap: var(--space-2xl);
}

.contacto__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contacto__card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: var(--space-xl);
}

.contacto__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-xl);
}

.contacto__item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contacto__item:last-child {
  margin-bottom: 0;
}

.contacto__icon-wrapper {
  background-color: var(--primary-color-light);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contacto__icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-color);
}

.contacto__item-content {
  display: flex;
  flex-direction: column;
}

.contacto__item-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.contacto__item-text {
  color: var(--text-gray);
  font-size: 0.875rem;
}

.contacto__link {
  color: var(--primary-color);
  transition: var(--transition);
}

.contacto__link:hover {
  color: rgba(59, 130, 246, 0.8);
}

/* Formulario de contacto */
.contacto__form-wrapper .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contacto__form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contacto__form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
}

.contacto__form-input {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.contacto__form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.contacto__submit-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.contacto__submit-btn:hover {
  background-color: rgba(59, 130, 246, 0.8);
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
  0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.contacto__submit-btn:active {
  transform: scale(0.95);
  background-color: rgba(59, 130, 246, 0.9);
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

/* Rehabilitación de lesiones */
.header__servicios{
  margin-top: 10vh!important;
}
.header_servicios--bg{
  background-image: url('/wp-content/themes/wp-theme/assets/img/hero2.jpg');
}
/* Rehabilitación de lesiones */
.header__servicios{
  margin-top: 10vh!important;
}
.header__servicios--bgDolor{
  background-image: url('/wp-content/themes/wp-theme/assets/img/dolor-cronico-hero.jpg');
}
.header__servicios--bgRehabilitacion{
  background-image: url('/wp-content/themes/wp-theme/assets/img/hero2.jpg');
}
.header__servicios--bgPrevencion{
  background-image: url('/wp-content/themes/wp-theme/assets/img/prevencion-hero.jpg');
}
.header__servicios--bgEmbarazo{
  background-image: url('/wp-content/themes/wp-theme/assets/img/embarazo.jpg');
}
.whatsapp-logo{
    background-color: #25d366;
}

/* Responsive */
@media (min-width: 768px) {
  .contacto__title {
    font-size: 2.25rem;
  }
  
  .contacto__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
