/*
Theme Name:  Twenty Twenty-Four Child
Description: Tema hijo para hacer personalizaciones de código
Author:      CholasStudio
Author URL:  https://cholasstudio.com
Template:    twentytwentyfour
Version:     1.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfour-child
*/

/* Contenedor de la grid de servicios */
.servicios-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1200px; /* ancho máximo opcional para grandes pantallas */
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr; /* móviles */
}
/* Tarjeta de servicio */
.service-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Contenedor del icono */
.icon-container {
    width: 3.5rem;  /* tamaño proporcional */
    height: 3.5rem;
    background-color: #D9F0C6; /* verde claro */
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Ajuste del SVG dentro del contenedor */
.icon-wrapper {
    width: 100%; /* proporcional al contenedor */
    height: 100%;
    color: #586E26;
   	justify-content: center;
 	display: flex;
	align-items: center;
}

.icon-service svg {
	width: 50%;
	height: 50%;
}

/* Título del servicio */
.service-title {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    margin-bottom: 0.2rem;
}

/* Descripción del servicio */
.service-description {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Enlace "Más información" */
.service-link {
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

/* Acordeón Preguntas Frecuentes */
/* Contenedor general */
#preguntas-frecuentes .has-global-padding {
    padding: 0 !important;
}

.faq-accordion {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Cada ítem */
.faq-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background-color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Espaciado entre acordeones */
.space-y-6 > * + * {
  margin-top: 1.5rem; /* equivalente a space-y-6 de Tailwind */
}

/* Contenedor <details> */
details.group {
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Hover efecto tarjeta */
details.group:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

details.group summary {
  display: flex;
  justify-content: space-between; /* separa texto e icono */
  align-items: center;
  cursor: pointer;
  font-size: 1rem; /* text-xl */
  font-weight: 600;
  color: var(--wp--preset--color--custom-verde-principal);
  list-style: none;
  gap: 1rem; /* pequeño espacio entre texto e icono */
}

/* Asegura que el icono quede alineado a la derecha */
details.group summary .material-symbols-outlined {
  margin-left: auto;      /* empuja el icono hacia la derecha */
  display: flex;          /* centra el svg dentro */
  align-items: center;
  justify-content: center;
  flex-shrink: 0;         /* evita que el icono se reduzca */
  transition: transform 0.3s ease;
  padding-left: 1rem;     /* opcional: añade espacio adicional a la izquierda del icono */
}

/* Rotación cuando está abierto */
.group[open] .material-symbols-outlined {
  transform: rotate(180deg);
}

/* Quitar la flecha estándar del navegador */
details.group summary::-webkit-details-marker {
  display: none;
}

/* Texto de la respuesta */
details.group p {
  margin-top: 1rem;
  color: #4b5563; /* gris suave */
  font-size: 1rem;
  line-height: 1.6;
}

details:focus,
details summary:focus {
  outline: 2px solid var(--wp--preset--color--custom-verde-principal); /* color corporativo */
  outline-offset: 4px; /* espacio entre el borde y el elemento */
  border-radius: 0.75rem;
}
/* Estilos para el widget de Doctoralia*/
/* Contenedor general del widget */
/* Contenedor principal */
.order-section {
    order: 1;
    padding-top: 0;
}

@media (min-width: 1024px) {
    .order-section {
        order: 2;
        padding-top: 2.5rem; /* lg:pt-10 */
    }
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.375rem 1rem; /* py-1.5 px-4 */
    border-radius: 9999px;
    background-color: rgba(59, 130, 246, 0.1); /* bg-primary/10 */
    color: #3b82f6; /* text-primary */
    font-size: 0.875rem; /* text-sm */
    font-weight: 700; /* font-bold */
    margin-bottom: 1.5rem; /* mb-6 */
}

/* Título principal */
.title {
    color: #0f172a; /* text-slate-900 */
    font-weight: 800; /* font-extrabold */
    font-size: 3rem; /* text-5xl */
    line-height: 1.1;
    letter-spacing: -0.015em; /* tracking-tight */
    margin-bottom: 1.5rem; /* mb-6 */
}

@media (min-width: 1024px) {
    .title {
        font-size: 3.75rem; /* lg:text-6xl */
    }
}

/* Subtítulo */
.subtitle {
    color: #64748b; /* text-slate-600 */
    font-size: 1.25rem; /* text-xl */
    font-weight: 500; /* font-medium */
    line-height: 1.75rem; /* leading-relaxed */
    margin-bottom: 3rem; /* mb-12 */
    max-width: 32rem; /* max-w-lg */
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* space-y-6 */
    margin-bottom: 4rem; /* mb-16 */
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem; /* gap-5 */
}

.feature-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(59, 130, 246, 0.1); /* bg-primary/10 */
    color: #3b82f6; /* text-primary */
    border-radius: 1rem; /* rounded-2xl */
    flex-shrink: 0;
    width: 3.5rem; /* size-14 */
    height: 3.5rem; /* size-14 */
    font-size: 1.875rem; /* text-3xl */
}

.feature-title {
    color: #0f172a; /* text-slate-900 */
    font-weight: 700; /* font-bold */
    font-size: 1.125rem; /* text-lg */
}

.feature-desc {
    color: #64748b; /* text-slate-500 */
    font-size: 0.875rem; /* text-sm */
}


/* Ajuste responsive */
@media (max-width: 480px) {
    .doctoralia-wrapper {
        padding: 1rem;
        border-radius: 20px;
    }
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 640px) {
  details.group {
    padding: 1rem;
  }
  details.group summary {
    font-size: 1.1rem;
  }
}



@media (min-width: 640px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Máximo tres columnas en desktop */
@media (min-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}