/* Exxacon Core: estilos públicos específicos de widgets Elementor. */
.elementor-landing-main,
.elementor-front-page-main {
  --exxacon-elementor-content-width: 1280px;
  overflow: clip;
}

.elementor-landing-main .e-con.e-con-boxed,
.elementor-front-page-main .e-con.e-con-boxed {
  --content-width: var(--exxacon-elementor-content-width);
}

.elementor-landing-main > .elementor > .e-con,
.elementor-front-page-main > .elementor > .e-con {
  padding-inline: 0;
}

.elementor-widget-exxacon_hero_oportunidades,
.elementor-widget-exxacon_grid_unidades,
.elementor-widget-exxacon_beneficios,
.elementor-widget-exxacon_calculadora_inversion,
.elementor-widget-exxacon_simulador_fogaes,
.elementor-widget-exxacon_politica_privacidad {
  width: 100%;
}

/* -------------------------------------------------------------
 * WIDGET: POLÍTICA DE PRIVACIDAD
 * ------------------------------------------------------------- */
.exxacon-privacy-widget {
  background-color: #f9fafb;
  min-height: 100vh;
  padding-bottom: 80px;
}

.privacy-hero-header {
  background-color: #111111;
  color: #ffffff;
  padding: 80px 20px 60px;
  margin-bottom: 48px;
  text-align: center;
}

.privacy-hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-badge {
  font-family: var(--font-display, sans-serif);
  color: #e1251b;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}

.privacy-title {
  font-family: var(--font-serif, serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.privacy-subtitle {
  color: #d1d5db;
  font-family: var(--font-sans, sans-serif);
  font-size: clamp(14px, 1.8vw, 16px);
  max-width: 680px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.6;
}

.privacy-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.privacy-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  color: #374151;
  font-family: var(--font-sans, sans-serif);
  font-size: 14px;
  line-height: 1.7;
}

.privacy-section-item {
  margin-bottom: 32px;
}

.privacy-section-item:last-of-type {
  margin-bottom: 0;
}

.privacy-section-heading {
  font-family: var(--font-serif, serif);
  font-size: 20px;
  font-weight: 400;
  color: #0b1320;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-section-icon {
  color: #e1251b;
  font-size: 16px;
}

.privacy-section-body p {
  color: #4b5563;
  margin: 0 0 10px 0;
}

.privacy-section-body ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #4b5563;
  margin: 8px 0;
}

.privacy-section-body ul li {
  margin-bottom: 6px;
}

.privacy-card-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.privacy-footer-note {
  font-size: 12px;
  color: #9ca3af;
}

.privacy-btn-back {
  background-color: #0b1320;
  color: #ffffff;
  font-family: var(--font-display, sans-serif);
  font-weight: 600;
  font-size: 12px;
  padding: 10px 24px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.privacy-btn-back:hover {
  background-color: #e1251b;
  color: #ffffff;
}

@media (max-width: 768px) {
  .privacy-hero-header {
    padding: 60px 16px 40px;
    margin-bottom: 30px;
  }
  .privacy-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .privacy-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.max-w-700 {
  max-width: 700px;
}

.hero-badge-danger {
  background-color: #dc2626 !important;
}

.text-accent-red {
  color: #dc2626;
}

.text-accent-green {
  color: #059669;
}

/* FOGAES Card */
.exxacon-fogaes-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  align-items: center;
}

.exxacon-panel-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #0f172a;
}

.exxacon-panel-desc {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.6;
}

.exxacon-fogaes-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.exxacon-fogaes-stat-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
}

.stat-box-label {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 600;
}

.stat-box-value {
  font-size: 24px;
  font-weight: 800;
}

.exxacon-fogaes-action-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.fogaes-action-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.fogaes-action-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.fogaes-action-desc {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Investment Panel */
.exxacon-investment-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 48px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  align-items: center;
}

.exxacon-investment-panel .exxacon-panel-title {
  color: #ffffff !important;
}

.exxacon-investment-panel .exxacon-panel-desc {
  color: #cbd5e1 !important;
}

.exxacon-investment-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.highlight-item {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  border-radius: 12px;
  align-items: flex-start;
}

.highlight-icon {
  font-size: 24px;
  line-height: 1;
}

.highlight-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.highlight-desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.exxacon-investment-calculator-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  color: #0f172a;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.calculator-card-title {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: #0f172a;
}

.calculator-form-group {
  margin-bottom: 16px;
}

.calculator-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.calculator-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.calculator-input:focus {
  border-color: var(--color-primary-accent, #ff5722);
  background: #ffffff;
}

.calculator-readonly {
  background: #f1f5f9;
  cursor: default;
}

.calculator-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calculator-cashflow-result {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin: 20px 0;
}

.cashflow-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.cashflow-value {
  font-size: 22px;
  font-weight: 800;
  color: #059669;
}

/* Responsive */
@media (max-width: 991px) {
  .exxacon-fogaes-card,
  .exxacon-investment-panel {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

@media (max-width: 767px) {
  .elementor-landing-main .e-con.e-con-boxed,
  .elementor-front-page-main .e-con.e-con-boxed {
    --content-width: 100%;
  }

  .exxacon-fogaes-stats-grid,
  .calculator-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------
 * ORDEN DE COLUMNAS EN WIDGETS ELEMENTOR (ej. Entorno Urbano)
 * ------------------------------------------------------------- */
.order-1 { order: 1 !important; }
.order-2 { order: 2 !important; }
.order-none { order: 0 !important; }

@media (min-width: 1024px) {
  .lg\:order-1 { order: 1 !important; }
  .lg\:order-2 { order: 2 !important; }
  .lg\:order-none { order: 0 !important; }

  /* Bloque Entorno Urbano & Conectividad invertido */
  .exxacon-entorno-urbano-block.layout-reversed .exxacon-entorno-col-text,
  .exxacon-entorno-layout-reversed .exxacon-entorno-col-text {
    order: 2 !important;
  }
  .exxacon-entorno-urbano-block.layout-reversed .exxacon-entorno-col-carousel,
  .exxacon-entorno-layout-reversed .exxacon-entorno-col-carousel {
    order: 1 !important;
  }
}
