/* Tarjetas de servicios con efecto vidrio */
.card {
  background: rgba(255, 255, 255, 0.15); /* transparencia */
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
  backdrop-filter: blur(12px); /* desenfoque estilo vidrio */
  -webkit-backdrop-filter: blur(12px); /* soporte para Safari */
  border: 1px solid rgba(255, 255, 255, 0.3); /* borde sutil */
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,.15);
}

/* Botones estilo píldora */
.wp-block-button__link {
  border-radius: 999px !important;
  padding: .9rem 1.6rem;
  font-weight: bold;
}


/* Efecto vidrio esmerilado */
.glass {
  background: rgba(255, 255, 255, 0.15); 
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  max-width: 800px;
  margin: auto;
  display: inline-block;
  width: 100%;
}

/* Estilo tipo vidrio para secciones */
.section-glass {
  background: rgba(255, 255, 255, 0.15); /* transparencia */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px); /* compatibilidad */
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Estilo tipo vidrio para secciones */
.efeto-vidrio {
  background: rgba(255, 255, 255, 0.05); /* transparencia */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* compatibilidad */
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Estilo tipo vidrio para titulos en subsecciones */
.efeto-titulos-vidrio {
  background: rgba(255, 255, 255, 0.45); /* más claro */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 50px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); /* sombra marcada */
  border: 1px solid rgba(255, 255, 255, 0.6); /* borde elegante */
  padding: 1.5rem 2rem;
}

/* Estilo tipo vidrio para titulos en subsecciones */
.efeto-vidrio-titulo {
  background: rgba(255, 255, 255, 0.45); /* más claro */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 50px;
  max-width: 85%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); /* sombra marcada */
  border: 1px solid rgba(255, 255, 255, 0.6); /* borde elegante */
  padding: 1.5rem 2rem;
}

/* Estilo tipo vidrio para textos */
.efeto-vidrio-textos { 
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);

  /* --- Ajustes para que no abarque todo el ancho --- */
  max-width: 85%;        /* ajusta el ancho máximo deseado */
  margin: 0 auto;          /* centra el bloque */
  padding: 20px 30px;      /* espaciado interno */

  /* Centrar texto dentro */
  text-align: center;
}

/* Estilo tipo vidrio para textos */
.efeto-vidrio-tex-dos { 
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);

  /* --- Ajustes para que no abarque todo el ancho --- */
  max-width: 100%;        /* ajusta el ancho máximo deseado */
  margin: 0 auto;          /* centra el bloque */
  padding: 20px 30px;      /* espaciado interno */

  /* Centrar texto dentro */
  text-align: center;
}


/* Fondo global con imagen + capa blanca con opacidad */
body {
  position: relative;
  min-height: 100vh;
  z-index: 0;
}

/* Capa blanca con opacidad */
body.page {
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* hace que se vea pro */
  transition: background-image 0.7s ease-in-out;
}

/* capa blanca con opacidad encima del fondo */
body.page::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: -1;
}

.bg-general {
  min-height: 90vh;
  position: relative;
  background-size: cover;
  z-index: 0;
}

/* Opcional: capa blanca semitransparente encima del fondo */
.bg-general::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.4); /* opacidad */
  z-index: -1;
}

#portada {
  position: relative;
  z-index: 0; /* asegura que la capa quede atrás del contenido */
}

#portada::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(200, 200, 200, 0.4); /* capa blanca con opacidad */
  z-index: -1; /* se coloca debajo del contenido */
}

/* --- CARRUSEL GLASS HERO CON FADE --- */

.carousel-glass-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 90vh;
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
}

.carousel-glass-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-glass-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.carousel-glass-item.active {
  opacity: 1;
  z-index: 2;
}

.carousel-glass-card {
  max-width: 1200px;
  width: 90%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  text-align: center;
}

.carousel-glass-card img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* Mantener párrafos claros */
.carousel-glass-card p {
  color: #304234 !important;
  font-size: 20px !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* Botones laterales más grises */
.carousel-glass-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(120,120,120,0.45);
  color: #010201;
  font-size: 34px;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  cursor: pointer;
  transition: 0.25s;
  z-index: 10;
}

.carousel-glass-btn:hover {
  background: rgba(150,150,150,0.45);
  transform: translateY(-50%) scale(1.1);
}

.carousel-glass-btn.prev { left: 20px; }
.carousel-glass-btn.next { right: 20px; }

/* ===== FORMULARIO ESTILO EDITORIAL CORPORATIVO ===== */

.cf-editorial {
  max-width: 900px;
  margin: 60px auto;
  padding: 50px 60px;
  font-family: 'Inter', sans-serif;
  border-radius: 35px;

  /* FONDO CRISTALINO BLANCO */
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  /* Profundidad */ 
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
}


/* Filas */
.cf-row {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.cf-col {
  flex: 1;
}

/* Labels */
.cf-editorial label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 6px;
}

/* Inputs */
.cf-editorial input[type="text"],
.cf-editorial input[type="email"],
.cf-editorial textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid #cfcfcf;
  padding: 10px 4px;
  font-size: 16px;
  background: transparent;
  color: #010201;
  transition: border-color 0.3s ease;
}

/* Focus */
.cf-editorial input:focus,
.cf-editorial textarea:focus {
  border-bottom-color: #147D0E;
  outline: none;
}

/* Textarea */
.cf-editorial textarea {
  min-height: 120px;
  resize: vertical;
  margin-bottom: 30px;
}

/* Botón */
.cf-editorial input[type="submit"] {
  background: transparent;
  border: 2px solid #147D0E;
  color: #147D0E;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
}

/* Hover botón */
.cf-editorial input[type="submit"]:hover {
  background: #147D0E;
  color: #fff;
}

/* Errores */
.cf-editorial .wpcf7-not-valid-tip {
  font-size: 13px;
  color: #c0392b;
}

/* Mensaje envío */
.cf-editorial .wpcf7-response-output {
  margin-top: 25px;
  padding: 15px;
  border-radius: 10px;
  font-size: 14px;
}