/* =========================================
   1. FONDO Y ANIMACIONES
========================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.cesma-landing {
  font-family: system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #020202 0%, #1a1e24 100%);
  background-attachment: fixed;
  color: #d9d6cf;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 100px; 
}

.cesma-landing h1, .cesma-landing h2, .cesma-landing h3, .cesma-landing h4, .section-title {
  color: #ffffff !important; 
  margin-top: 0;
}

.cesma-landing section {
  padding: 80px 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cesma-landing .container {
  width: min(calc(100% - 32px), 1180px);
  margin: 0 auto;
}

/* =========================================
   2. HEADER FIJO (GLASSMORPHISM)
========================================= */
.cesma-header-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  background: rgba(5, 5, 5, 0.35) !important; 
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cesma-header-custom .container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.cesma-header-custom .brand { display: flex; align-items: center; gap: 14px; text-decoration: none !important; }
.cesma-header-custom .brand img { width: 54px; height: 54px; }
.cesma-header-custom .brand-copy strong { display: block; font-size: 1rem; color: #ffffff !important; letter-spacing: 0.22em; }
.cesma-header-custom .brand-copy span { display: block; color: #d9d6cf !important; font-size: 0.77rem; letter-spacing: 0.22em; }

.cesma-header-custom .nav-links { display: flex; gap: 24px; }
.cesma-header-custom .nav-links a { color: #ffffff !important; text-decoration: none !important; transition: color 0.3s; }
.cesma-header-custom .nav-links a:hover { color: #c9b476 !important; }

.cesma-header-custom .btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(201, 180, 118, 0.5);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  text-decoration: none !important;
}

.cesma-header-custom .btn:hover { background: rgba(201, 180, 118, 0.15); border-color: #c9b476; transform: translateY(-2px); }

/* =========================================
   3. CONTENIDO Y TARJETAS
========================================= */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.services-grid, .process-grid, .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }

.service-card, .step, .contact-item, .hero-card, .contact-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.service-card:hover, .step:hover { transform: translateY(-8px); border-color: rgba(201, 180, 118, 0.4); box-shadow: 0 15px 35px rgba(201, 180, 118, 0.15); }

/* Brillo en Contacto */
.contact-item.link-card { text-decoration: none !important; display: flex !important; flex-direction: column !important; align-items: center !important; }
.contact-item.link-card:hover { 
  transform: translateY(-8px); 
  border-color: #c9b476 !important; 
  background: rgba(201, 180, 118, 0.08) !important; 
  box-shadow: 0 0 25px rgba(201, 180, 118, 0.3) !important; 
}
.contact-item.link-card:hover .lbl, .contact-item.link-card:hover .val { color: #c9b476 !important; }

/* Centrados de Títulos */
#sectores .section-head, #proceso .section-head, #contacto .contact-card { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; }
#sectores .section-head *, #proceso .section-head *, #contacto .contact-card > .eyebrow, #contacto .contact-card > .section-title, #contacto .contact-card > .section-copy { text-align: center !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }

/* =========================================
   4. FOOTER NEGRO SÓLIDO (CORREGIDO)
========================================= */
.cesma-footer-custom {
  background: #000000 !important;
  color: #ffffff;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(201, 180, 118, 0.2);
}

.cesma-footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cesma-footer-logo { width: 100px; height: auto; }
.cesma-footer-col h4 { color: #ffffff !important; margin-bottom: 20px; font-size: 1.2rem; }
.cesma-footer-col p { color: rgba(255, 255, 255, 0.7); line-height: 1.6; }

.cesma-footer-links { display: flex; flex-direction: column; gap: 12px; }
.cesma-footer-links a { color: #ffffff !important; text-decoration: none !important; transition: all 0.3s; }
.cesma-footer-links a:hover { color: #c9b476 !important; transform: translateX(5px); }

.cesma-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.cesma-footer-copy { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }

.cesma-footer-mm4u {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.3s;
}

.cesma-footer-mm4u:hover { color: #c9b476 !important; }
.cesma-footer-mm4u img { width: 28px; height: 28px; border-radius: 50%; }

/* =========================================
   5. EXTRAS Y RESPONSIVO
========================================= */
.whatsapp-float { position: fixed; bottom: 40px; right: 40px; z-index: 100000; transition: 0.3s; animation: pulse-wa 2s infinite; }
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

@media (max-width: 980px) {
  .cesma-footer-grid { grid-template-columns: 1fr 1fr; }
  .cesma-header-custom .nav-links { display: none; }
}

@media (max-width: 640px) {
  .cesma-footer-grid { grid-template-columns: 1fr; }
  .cesma-footer-bottom { flex-direction: column; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; }
}

.sharedaddy, .sd-sharing-enabled, .share-buttons { display: none !important; }
/* =========================================
   AJUSTE LOGO FOOTER: MÁS GRANDE Y CENTRADO
========================================= */
.cesma-footer-col-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important; /* Centra el logo en su columna */
}

.cesma-footer-logo {
  width: 150px !important; /* Aumentado de 100px a 150px */
  height: auto;
  filter: drop-shadow(0 0 10px rgba(201, 180, 118, 0.1)); /* Brillo sutil para que resalte */
}

/* Ajuste para que en móviles no sea gigante */
@media (max-width: 640px) {
  .cesma-footer-logo {
    width: 120px !important;
    margin-bottom: 20px;
  }
}
/* =========================================
   CENTRADO TOTAL Y DEFINITIVO (FORZADO)
========================================= */

/* 1. Centrar los contenedores principales */
#sectores .section-head,
#proceso .section-head,
#contacto .contact-card {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* 2. Forzar cada elemento interno al centro (Sectores, Proceso y Contacto) */
#sectores .section-head .eyebrow,
#sectores .section-head .section-title,
#sectores .section-head .section-copy,
#proceso .section-head .eyebrow,
#proceso .section-head .section-title,
#proceso .section-head .section-copy,
#contacto .contact-card .eyebrow,
#contacto .contact-card .section-title,
#contacto .contact-card .section-copy {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  width: 100% !important;
}

/* 3. Ajuste extra por si el tema Astra mete márgenes raros */
.section-title, .eyebrow, .section-copy {
  text-align: center !important;
}
/* =========================================
   CENTRADO TOTAL: SERVICIOS, SECTORES, PROCESO Y CONTACTO
========================================= */

/* 1. Forzamos el contenedor al centro */
#servicios .section-head,
#sectores .section-head,
#proceso .section-head,
#contacto .contact-card {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* 2. Forzamos cada texto individual (dorado, blanco y párrafo) al centro */
#servicios .section-head *,
#sectores .section-head *,
#proceso .section-head *,
#contacto .contact-card > .eyebrow,
#contacto .contact-card > .section-title,
#contacto .contact-card > .section-copy {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  display: block !important;
}

/* 3. Ajuste de margen para que no queden pegados a las tarjetas */
.section-head {
  margin-bottom: 50px !important;
}
/* =========================================
   AJUSTE PREMIUM: SECCIÓN DIFERENCIALES
========================================= */

/* 1. Hacemos el panel flexible para centrar el contenido verticalmente */
#diferenciales .split .panel:first-child {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important; /* Centro vertical */
  min-height: 400px; /* Espacio suficiente para que se note el centrado */
}

/* 2. Título más grande y con mejor presencia */
#diferenciales .section-title {
  font-size: 3.2rem !important; /* Aumentamos el tamaño significativamente */
  line-height: 1.1 !important;
  margin-bottom: 30px !important; /* Espacio extra abajo del título */
  color: #ffffff !important;
}

/* 3. Texto justificado y con mejor espaciado */
#diferenciales .section-copy {
  text-align: justify !important; /* Texto justificado como pediste */
  font-size: 1.1rem !important;
  line-height: 1.8 !important; /* Más aire entre líneas para elegancia */
  margin-top: 20px !important; /* Separación sutil del título */
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Ajuste para que en móviles no se vea gigantesco el título */
@media (max-width: 768px) {
  #diferenciales .section-title {
    font-size: 2.2rem !important;
  }
  #diferenciales .split .panel:first-child {
    min-height: auto;
    padding-bottom: 40px;
  }
}