/* ============================================= */
/* ========= ESTILOS GENERALES Y VARIABLES ========= */
/* ============================================= */
:root {
    --color-primario: #1E5372; /* Azul oscuro */
    --color-secundario: #E8F3FB; /* Azul claro */
    --color-acento: #3579FE;    /* Azul brillante para botones */
    --color-texto-claro: #ffffff;
    --color-texto-oscuro: #333333;
    --sombra-suave: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #c9e8fe;
}

/* Contenedor general para las secciones */
.servicios-wrapper, .servicio-detalle {
    padding: 60px 20px;
    text-align: center;
    
}

h1, h2, h3 {
    color: #1e5372;
}

.page-underline {
    width: 350px;
    height: 4px;
    background-color: #1e5372;
    margin: 10px auto 30px;
    border-radius: 2px;
}

/* ============================================= */
/* =========== GRID DE TARJETAS INICIAL =========== */
/* ============================================= */
/* GRID DE SERVICIOS PRINCIPALES */

/* ============================================= */
/* ========= CABECERA DE SECCIÓN ========= */
/* ============================================= */
.servicios-wrapper {
  padding: 80px 20px;
  background: #f9fbfd;
  text-align: center;
}

.servicios-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primario);
  margin-bottom: 10px;
}

.page-underline {
  width: 80px;
  height: 4px;
  background: var(--color-acento);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.servicios-header p {
  color: #555;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* ============================================= */
/* ========= GRID DE SERVICIOS ========= */
/* ============================================= */
.servicio-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* separa contenido arriba y botón abajo */
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.servicio-content {
    flex-grow: 1; /* ocupa todo el espacio disponible */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.servicio-content .btn-vermas {
    margin-top: auto; /* empuja el botón hacia el fondo */
    align-self: center; /* centra horizontalmente */
}


.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.servicio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.servicio-card:hover img {
  transform: scale(1.05);
}

.servicio-content {
  padding: 25px;
}

.servicio-content h3 {
  font-size: 1.25rem;
  color: var(--color-primario);
  margin-bottom: 10px;
  font-weight: 600;
}

.servicio-content p {
  color: #555;
  font-size: 0.95rem;
  margin: 5px 0;
}

/* ============================================= */
/* ========= SECCIONES DETALLADAS ========= */
/* ============================================= */
.servicio-detalle {
  padding: 100px 20px;
}

.bg-claro {
  background-color: #f4f7fb;
}

.bg-oscuro {
  background-color: #215574;
}

.servicio-detalle-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  gap: 60px;
  padding-inline: 20px;
}

.bg-claro .servicio-detalle-container {
  direction: rtl; /* invierte el orden visual solo en fondos claros */
}

.bg-claro .servicio-detalle-texto,
.bg-claro .servicio-detalle-imagen {
  direction: ltr; /* evita que el texto se invierta */
}

.servicio-detalle-imagen img {
  width: 100%;
  max-width: 500px;
  border-radius: 14px;
  box-shadow: var(--sombra-suave);
  transition: transform 0.4s ease;
}

.servicio-detalle-imagen img:hover {
  transform: scale(1.03);
}

.servicio-detalle-texto h2 {
  font-size: 2rem;
  color: var(--color-primario);
  margin-bottom: 15px;
  font-weight: 700;
}

.servicio-detalle-texto p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 8px;
}

.bg-oscuro h2,
.bg-oscuro p {
  color: #fff;
}

p.detalle-4-p {
    color: white !important;
}
/* ============================================= */
/* ========= BOTONES (GOOGLE CALENDAR) ========= */
/* ============================================= */
#btn-servicio-ia,
#btn-servicio-digital,
#btn-servicio-cambio {
  display: inline-block;
  margin-top: 25px;
}


/* ============================================= */
/* ========= RESPONSIVE DESIGN UNIFICADO ========= */
/* ============================================= */

/* Tablets */
@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .servicio-detalle-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .servicio-detalle-imagen img {
    max-width: 60%;
    margin-inline: auto;
  }

  .servicio-detalle-texto h2 {
    font-size: 1.8rem;
  }
}

/* Móviles */
@media (max-width: 600px) {
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .servicio-card img {
    height: 120px;
  }

  .servicio-content h3 {
    font-size: 1.1rem;
  }

  .servicio-detalle {
    padding: 60px 15px;
  }

  .servicio-detalle-imagen img {
    max-width: 90%;
  }

  .servicio-detalle-texto h2 {
    font-size: 1.6rem;
  }

  .servicio-detalle-texto p {
    font-size: 0.95rem;
  }
}
