/**
 * ==========================================================================
 * autoCatastro Frontend - CSS Consolidado Final
 * ==========================================================================
 * 
 * Incluye:
 * - Diseño completo de autoCatastro
 * - Menús condicionales
 * - Smooth scroll
 * - Mejoras UX (iconos grises, checks verdes, jerarquía visual)
 * 
 * @package autoCatastro_Frontend
 * @version 2.0.0
 * @author autoCatastro
 */


/* ==========================================================================
   SECCIÓN 1: TIPOGRAFÍA Y BASE
   ========================================================================== */

   body, p, li {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
  }
  
  h1, h2, h3 {
    font-family: 'Lato', sans-serif;
    color: #1C1C1C;
    letter-spacing: 0.3px;
  }
  
  h1 {
    font-weight: 700;
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 0.6em;
  }
  
  h2 {
    font-weight: 600;
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 0.6em;
  }
  
  h3 {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 0.5em;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  [id] {
    scroll-margin-top: 30px;
  }
  
  
  /* ==========================================================================
     SECCIÓN 2: HEADER Y NAVEGACIÓN
     ========================================================================== */
  
  /* Menú GeneratePress */
  .main-navigation a,
  .main-navigation .main-nav ul li a {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.35px;
    color: #1C1C1C;
    transition: all 0.3s ease;
  }
  
  .main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: #F36C21 !important;
    font-weight: 600;
  }
  
  .main-navigation .main-nav ul li a:hover {
    color: #F36C21 !important;
  }
  
  /* Header */
  .ac-header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 0;
  }
  
  .ac-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .ac-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .ac-logo-full {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
  
  /* Transiciones suaves en enlaces del menú */
  .menu a,
  nav a {
    transition: all 0.3s ease;
  }
  
  .menu a:hover,
  nav a:hover {
    opacity: 0.8;
  }
  
  
  /* ==========================================================================
     SECCIÓN 3: HERO
     ========================================================================== */
  
  .ac-hero {
    background: linear-gradient(135deg, #F36C21 0%, #FDB913 100%);
    padding: 60px 20px;
    color: white;
    text-align: center;
    margin: 0 0 -40px 0;
  }
  
  .ac-hero h2 {
    font-weight: 700;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  .ac-hero p {
    font-size: 22px;                 /* +2 puntos para más impacto */
    font-weight: 600;                /* mayor presencia tipográfica */
    line-height: 1.6;
    color: #fff;
    opacity: 1;
    max-width: 900px;                /* un poco más ancho para equilibrio */
    margin: 0 auto;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.25); /* contraste más limpio */
    letter-spacing: 0.2px;
  }
  
  
  /* ==========================================================================
     SECCIÓN 4: CONTAINER Y SECCIÓN DE SUBIDA
     ========================================================================== */
  
  .ac-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    position: relative;
  }
  
  .ac-upload-card {
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin-bottom: 60px;
  }
  
  /* Drop Zone - GRIS NEUTRO */
  .drop-zone,
  .upload-area {
    border: 3px dashed #B5AFA1 !important;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    background: #fafafa !important;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .drop-zone:hover,
  .drop-zone.drag-over {
    border-color: #999 !important;
    background: #f5f5f5 !important;
  }
  
  /* Icono de subida - GRIS */
  .upload-icon,
  .upload-icon svg {
    display: inline-block;
    vertical-align: middle;
    filter: none !important;
    box-shadow: none !important;
    transition: transform 0.3s ease;
    fill: #B5AFA1 !important;
    color: #B5AFA1 !important;
  }
  
  .drop-zone:hover .upload-icon svg {
    transform: scale(1.05) translateY(-2px);
  }
  
  
  /* ==========================================================================
     SECCIÓN 5: VENTAJAS (ICONOS GRISES)
     ========================================================================== */
  
  .ac-benefits {
    padding: 80px 20px;
    background: white;
    margin-bottom: 60px;
  }
  
  .ac-benefits-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .ac-section-title {
    text-align: center;
    font-weight: 700;
    font-size: 36px;
    margin-bottom: 50px;
    color: #000;
  }
  
  .ac-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
  }
  
  .ac-benefit {
    padding: 35px;
    background: #fafafa;
    border-radius: 16px;
    border-left: 4px solid #e0e0e0;
    transition: all 0.3s;
  }
  
  .ac-benefit:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
  }
  
  /* ICONOS EN GRIS NEUTRO - MEJORA UX */
  .ac-benefit-icon,
  .ac-benefit-icon svg,
  .ac-benefit-icon *,
  .ac-benefit .ac-benefit-icon {
    font-size: 42px;
    margin-bottom: 20px;
    color: #B5AFA1 !important;
    fill: #B5AFA1 !important;
    stroke: #B5AFA1 !important;
  }
  
  .ac-benefit h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #000;
    font-weight: 700;
  }
  
  .ac-benefit p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
  }
  
  
  /* ==========================================================================
     SECCIÓN 6: PROCESO (STEPS NARANJAS - CORRECTO)
     ========================================================================== */
  
  .ac-process {
    padding: 80px 20px;
    background: #fafafa;
    margin-bottom: 0;
  }
  
  .ac-process-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .ac-process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
  }
  
  .ac-step {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: relative;
  }
  
  .ac-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #F36C21 0%, #FDB913 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 24px;
    box-shadow: 0 4px 12px rgba(255, 107, 26, 0.3);
  }
  
  .ac-step h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #000;
    font-weight: 700;
  }
  
  .ac-step p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
  }
  
  
  /* ==========================================================================
     SECCIÓN 7: REDACCIÓN NOTARIAL (CHECKS VERDES)
     ========================================================================== */
  
  .ac-custom-style {
    padding: 80px 20px;
    background: #ffffff;
  }
  
  .ac-custom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
  }
  
  .ac-custom-left {
    flex: 1 1 40%;
    text-align: center;
  }
  
  .ac-custom-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
  }
  
  .ac-custom-right {
    flex: 1 1 55%;
  }
  
  .ac-custom-title,
  section.ac-custom-style h2 {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin-bottom: 40px !important;
    text-align: left !important;
  }
  
  .ac-custom-subtitle {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
  }
  
  .ac-custom-list {
    list-style: none !important;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .ac-custom-list li {
    position: relative;
    padding-left: 28px !important;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    list-style: none !important;
    margin-left: 0 !important;
  }
  
  .ac-custom-list li::marker {
    content: none !important;
  }
  
  /* CHECKS VERDES - MEJORA UX */
  .ac-custom-list li::before,
  section.ac-custom-style ul.ac-custom-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #4caf50 !important;
    font-weight: 600;
    font-size: 18px;
  }
  
  
  /* ==========================================================================
     SECCIÓN 8: PRECIOS (BOTONES OPTIMIZADOS)
     ========================================================================== */
  
  .ac-pricing-section {
    padding: 80px 20px;
    background: white;
    margin-bottom: 0;
    text-align: center;
  }
  
  .ac-pricing-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .ac-pricing-section h3 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #000;
    font-weight: 700;
  }
  
  .ac-pricing-section .ac-subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 50px;
  }
  
  .ac-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .ac-pricing-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid #ddd;
    position: relative;
  }
  
  .ac-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  }
  
  .ac-pricing-card.ac-free {
    border-top-color: #B5AFA1;
  }
  
  .ac-pricing-card.ac-pro {
    border-top-color: #F36C21;
    transform: scale(1.05);
  }
  
  .ac-pricing-card.ac-pro:hover {
    transform: scale(1.08) translateY(-8px);
  }
  
  .ac-pricing-card.ac-notaria {
    border-top-color: #FDB913;
  }
  
  .ac-pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #F36C21;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  
  .ac-plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
  }
  
  /* Estilo principal del precio */
.ac-plan-price {
  font-size: 48px;
  font-weight: 800;
  color: #505050;
  margin-bottom: 8px;
  line-height: 1.1;
}

/* Tamaño del símbolo € */
.ac-plan-price .ac-currency {
  font-size: 24px;
  vertical-align: super;
}

/* Texto "+ IVA" más elegante y proporcional */
.ac-plan-price .iva-note {
  font-size: 14px;
  font-weight: 500;
  color: #777;
  margin-left: 4px;
  opacity: 0.8;
  letter-spacing: 0.2px;
  vertical-align: middle;
}

/* Texto “al mes” */
.ac-plan-period {
  color: #999;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 400;
}

/* Badge promocional (más limpio y discreto) */
.ac-plan-promo {
  background: #f6f8ff !important;
  color: #3366cc !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 25px;
  font-weight: 600;
  display: inline-block;
}

/* Versión interna del "+IVA" dentro de la promo */
.ac-plan-promo .iva-note {
  font-size: 13px;
  color: #0066cc !important;   /* idéntico al resto del texto */
  opacity: 1;                  /* sin atenuación */
  font-weight: 500;
  margin-left: 3px;
  letter-spacing: 0.2px;       /* coherencia tipográfica sutil */
}

/* Nota legal pequeña al pie de cada plan */
.ac-legal-note {
  font-size: 12px;
  color: #888;
  margin-top: 18px;
  text-align: center;
  line-height: 1.4;
}


  /* Texto “al mes” */
  .ac-plan-period {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  /* BADGE PROMOCIONAL - AZUL SUAVE */
  .ac-plan-promo {
    background: #f0f7ff !important;
    color: #0066cc !important;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 25px;
    font-weight: 600;
  }
  
  .ac-plan-features {
    list-style: none;
    padding: 0;
    margin: 25px 0 30px;
    text-align: left;
  }
  
  .ac-plan-features li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: #555;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .ac-plan-features li:last-child {
    border-bottom: none;
  }
  
  /* CHECKS DE PLANES - VERDES */
  .ac-plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50 !important;
    font-weight: bold;
    font-size: 18px;
  }
  
  /* BOTONES DE PLANES - OPTIMIZADOS */
  .ac-btn-plan {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
  }
  
  /* BOTONES SECUNDARIOS - GRISES (Free y Notaría) */
  .ac-pricing-card.ac-free .ac-btn-plan,
  .ac-pricing-card.ac-notaria .ac-btn-plan {
    background: white !important;
    color: #666 !important;
    border: 2px solid #ccc !important;
  }
  
  .ac-pricing-card.ac-free .ac-btn-plan:hover,
  .ac-pricing-card.ac-notaria .ac-btn-plan:hover {
    background: #f5f5f5 !important;
    border-color: #999 !important;
    color: #333 !important;
  }
  
  /* BOTÓN PRINCIPAL - NARANJA (Plan Pro) */
  .ac-pricing-card.ac-pro .ac-btn-plan {
    background: linear-gradient(135deg, #F36C21 0%, #FDB913 100%) !important;
    color: white !important;
    border: none !important;
  }
  
  .ac-pricing-card.ac-pro .ac-btn-plan:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 26, 0.4);
  }
  
  
  /* ==========================================================================
     SECCIÓN 9: INFO LISTS (CHECKS VERDES)
     ========================================================================== */
  
  .ac-info-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  
  .ac-info-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #F36C21;
    font-weight: 600;
  }
  
  .ac-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .ac-info-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
  }
  
  .ac-info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50 !important;
    font-weight: bold;
    font-size: 18px;
  }
  
  
  /* ==========================================================================
     SECCIÓN 10: MENÚS CONDICIONALES Y CLASES DE USUARIO
     ========================================================================== */
  
  /* Destacar "Mi Área de Trabajo" para usuarios logeados */
  .user-logged-in .workspace-link {
    font-weight: 600;
    position: relative;
  }
  
  .user-logged-in .workspace-link::before {
    content: '▶';
    margin-right: 6px;
    font-size: 0.8em;
    opacity: 0.7;
  }
  
  .user-logged-in .workspace-link:hover {
    transform: translateX(2px);
    transition: transform 0.2s ease;
  }
  
  /* Estados condicionales */
  .user-logged-out .show-only-logged-in {
    display: none !important;
  }
  
  .user-logged-in .show-only-logged-out {
    display: none !important;
  }
  
  
  /* ==========================================================================
     SECCIÓN 11: ELEMENTOS GENERALES Y UTILIDADES
     ========================================================================== */
  
  /* Animaciones de scroll reveal (opcional) */
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Accesibilidad */
  a:focus-visible,
  button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }
  
  [tabindex="-1"]:focus {
    outline: none;
  }
  
  /* Ocultar copyright del footer (opcional) */
  .site-info .copyright-bar {
    display: none !important;
  }
  
  
  /* ==========================================================================
     SECCIÓN 12: RESPONSIVE
     ========================================================================== */
  
  @media (max-width: 768px) {
    /* Header */
    .ac-header-content {
      flex-direction: column;
      gap: 20px;
    }
    
    .ac-nav-menu {
      flex-direction: column;
      gap: 15px;
      text-align: center;
    }
    
    /* Hero */
    .ac-hero h2 {
      font-size: 32px;
    }
    
    .ac-hero p {
      font-size: 18px;
    }
    
    /* Upload */
    .ac-upload-card {
      padding: 30px 20px;
    }
    
    /* Pricing */
    .ac-pricing-section h3 {
      font-size: 28px;
    }
    
    .ac-pricing-grid {
      grid-template-columns: 1fr;
    }
    
    .ac-pricing-card.ac-pro {
      transform: scale(1);
    }
    
    .ac-pricing-card.ac-pro:hover {
      transform: scale(1) translateY(-8px);
    }
    
    /* Benefits */
    .ac-benefits-grid {
      grid-template-columns: 1fr;
      gap: 25px;
    }
    
    /* Process */
    .ac-process-steps {
      grid-template-columns: 1fr;
    }
    
    /* Section titles */
    .ac-section-title {
      font-size: 28px;
    }
    
    /* Custom style */
    .ac-custom-container {
      flex-direction: column;
      text-align: center;
    }
    
    .ac-custom-right {
      text-align: center;
    }
    
    .ac-custom-title {
      text-align: center !important;
      font-size: 28px !important;
    }
    
    .ac-custom-list li {
      padding-left: 24px !important;
    }
    
    /* Upload icon */
    .upload-icon svg {
      display: inline-block;
      vertical-align: middle;
      filter: none !important;
      box-shadow: none !important;
    }
    
    /* Scroll margin móvil */
    [id] {
      scroll-margin-top: 80px;
    }
    
    .workspace-link::before {
      margin-right: 4px;
      font-size: 0.7em;
    }
  }
  
  
  /* ==========================================================================
     FIN DEL CSS
     ========================================================================== */