/* ===================================================================
   HOJA DE ESTILOS PRINCIPAL - GRÁFICA O&S
   ===================================================================
   1. Variables y Globales
   2. Layout y Componentes Reutilizables
   3. Estilos de Secciones Específicas
      - Header y Hook Bar
      - Hero
      - Servicios
      - Calculadora
      - Precios
      - Blog
      - Contacto
      - Footer
   4. Media Queries (Responsividad)
   =================================================================== */

/* --- 1. Variables y Globales --- */
:root {
  /* NUEVA VARIABLE DE ESCALA: Juega con este valor para ajustar el tamaño general */
  --scale-factor: 0.9; 

  --color-blue: #0090E0;
  --color-orange: #F0A000;
  --color-magenta: #E00070;
  --color-yellow: #F0C000;
  --color-text: #111827;
  --color-text-muted: #6B7280;
  --color-background: #FFFFFF;
  --color-background-alt: #F7F8F9;
  --color-border: #E5E7EB;
  --color-success: #1B8F4B;
  
  --font-family-base: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-family-headings: 'Plus Jakarta Sans', sans-serif;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --font-weight-black: 800;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 8px -2px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 12px 20px -4px rgb(0 0 0 / 0.08), 0 4px 8px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
  --shadow-interactive: 0 0 0 4px rgba(0, 144, 224, 0.2);
  
  --radius-md: calc(12px * var(--scale-factor));
  --radius-lg: calc(16px * var(--scale-factor));
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: calc(16px * var(--scale-factor)); }
body {
  margin: 0;
  font-family: var(--font-family-base);
  background-color: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p { margin: 0; }

/* Tipografía Base (con escala aplicada) */
h1, h2, h3, h4 { font-family: var(--font-family-headings); font-weight: var(--font-weight-black); color: var(--color-text); }
h1 { font-size: clamp(calc(2.5rem * var(--scale-factor)), 5vw + 1rem, calc(3.8rem * var(--scale-factor))); line-height: 1.1; }
h2.section-title { font-size: clamp(calc(2rem * var(--scale-factor)), 4vw + 0.5rem, calc(2.8rem * var(--scale-factor))); text-align: center; margin-bottom: 1rem; }
.lead { font-size: clamp(calc(1.1rem * var(--scale-factor)), 2vw, calc(1.2rem * var(--scale-factor))); color: var(--color-text-muted);  }
.section-subtitle { text-align: center; max-width: 65ch; margin: -0.5rem auto 3rem; }

/* --- 2. Layout y Componentes Reutilizables --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 calc(1.5rem * var(--scale-factor)); }
.section { padding: clamp(calc(4rem * var(--scale-factor)), 8vw, calc(6rem * var(--scale-factor))) 0; }
.section-alt { background-color: var(--color-background-alt); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.subtle { font-size: calc(0.9rem * var(--scale-factor)); color: var(--color-text-muted); }

.btn {
  display: inline-block;
  padding: calc(0.8em * var(--scale-factor)) calc(1.7em * var(--scale-factor));
  border: 2px solid var(--color-blue);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background-color: var(--color-blue); 
  color: white;
  box-shadow: var(--shadow-md);
  font-size: calc(1rem * var(--scale-factor));
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); background-color: #0077c2; }
.btn.outline { background-color: var(--color-background); color: var(--color-blue); }
.btn.outline:hover { background-color: var(--color-blue); color: white; }
.btn.btn-full { width: 100%; padding-top: 1rem; padding-bottom: 1rem; font-size: calc(1.1rem * var(--scale-factor)); }

.card {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: calc(1.75rem * var(--scale-factor));
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 0.75rem; font-size: calc(1.2rem * var(--scale-factor)); }
.card p { color: var(--color-text-muted); line-height: 1.6; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--transition-base), transform 0.8s var(--transition-base); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- 3. Estilos de Secciones Específicas --- */

/* Header y Hook Bar */
.hook-bar { background: linear-gradient(90deg, var(--color-magenta), var(--color-orange), var(--color-blue)); color: white; text-align: center; padding: calc(12px * var(--scale-factor)) 1rem; font-size: calc(15px * var(--scale-factor)); }
#main-header { position: sticky; top: 0; z-index: 100; width: 100%; background-color: rgb(255 255 255 / 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: all var(--transition-base); }
#main-header.is-scrolled { border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: calc(80px * var(--scale-factor)); }
.logo { display: flex; align-items: center; gap: calc(12px * var(--scale-factor)); font-weight: var(--font-weight-bold); color: var(--color-text); text-decoration: none; font-size: calc(1.1rem * var(--scale-factor)); }
.logo img { max-height: calc(50px * var(--scale-factor)); }
#main-nav { display: flex; }
#main-nav ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: calc(2rem * var(--scale-factor)); }
#main-nav a { text-decoration: none; color: var(--color-text); font-weight: 600; transition: color var(--transition-base); }
#main-nav a:hover { color: var(--color-blue); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
#menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--color-text); }

/* Hero */
.hero { position: relative; padding: clamp(calc(4rem * var(--scale-factor)), 1vw, calc(8rem * var(--scale-factor))) 0; overflow: hidden; background-color: var(--color-background-alt); }
.hero-background { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 10% 20%, rgba(0, 144, 224, 0.1), transparent 40%), radial-gradient(circle at 90% 80%, rgba(224, 0, 112, 0.1), transparent 50%); opacity: 0.5; z-index: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; text-align: center; }
.hero-content .reveal { transition-delay: var(--delay, 0s); }
.hero-content .ribbon { display: inline-block; background: var(--color-magenta); color: white; padding: calc(6px * var(--scale-factor)) calc(14px * var(--scale-factor)); border-radius: 99px; font-size: calc(0.9rem * var(--scale-factor)); font-weight: var(--font-weight-bold); margin-bottom: 1.5rem; }
.hero-benefits { list-style: none; padding: 0; margin: 2rem 0; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.hero-benefits li { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--color-text-muted); }
.hero-benefits svg { width: calc(24px * var(--scale-factor)); height: calc(24px * var(--scale-factor)); color: var(--color-blue); }
.cta-bar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-image-container { display: flex; align-items: center; justify-content: center; width: 75%; height: 75%; margin-left: 10%;}
.hero-image-frame { border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); overflow: hidden; border: calc(8px * var(--scale-factor)) solid white; transform: rotate(3deg); transition: transform 0.5s var(--transition-base); }
.hero-image-frame:hover { transform: rotate(0deg) scale(1.05); }
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }
@keyframes hero-glow { 0% { box-shadow: 0 0 5px rgba(0, 144, 224, 0), 0 0 10px rgba(0, 144, 224, 0); } 50% { box-shadow: 0 0 20px rgba(0, 144, 224, 0.6), 0 0 30px rgba(0, 144, 224, 0.4); } 100% { box-shadow: 0 0 5px rgba(0, 144, 224, 0), 0 0 10px rgba(0, 144, 224, 0); } }
.hero .cta-bar .btn:first-child { animation: hero-glow 4s infinite; }

/* Servicios */
.services-grid-img { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(320px * var(--scale-factor)), 1fr)); gap: 2rem; }
.service-card-img { background-color: var(--color-background); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: transform var(--transition-base), box-shadow var(--transition-base); border: 1px solid var(--color-border); display: flex; flex-direction: column; }
.service-card-img:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); }
.service-image-container { overflow: hidden; height: calc(220px * var(--scale-factor)); position: relative; }
.service-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card-img:hover .service-image-container img { transform: scale(1.05); }
.service-content { padding: calc(1.75rem * var(--scale-factor)); flex-grow: 1; border-top: 4px solid transparent; transition: border-color var(--transition-base); }
.service-card-img:hover .service-content { border-color: var(--color-blue); }
.service-card-img:nth-child(4n+1):hover .service-content { border-color: var(--color-blue); }
.service-card-img:nth-child(4n+2):hover .service-content { border-color: var(--color-magenta); }
.service-card-img:nth-child(4n+3):hover .service-content { border-color: var(--color-orange); }
.service-card-img:nth-child(4n+4):hover .service-content { border-color: var(--color-yellow); }
.service-content h3 { font-size: calc(1.3rem * var(--scale-factor)); margin-bottom: 0.75rem; }
.service-content p { color: var(--color-text-muted); line-height: 1.6; }

/* Calculadora */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: calc(2rem * var(--scale-factor)); }
.calc-params { display: flex; flex-direction: column; gap: 1.25rem; }
.calc-row { display: flex; flex-direction: column; gap: 0.5rem; }
.calc-row label, .calc-label { font-weight: 600; }
.calc-row input, .calc-row select { width: 100%; padding: calc(0.75rem * var(--scale-factor)) 1rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); background-color: var(--color-background-alt); font-family: inherit; font-size: calc(1rem * var(--scale-factor)); transition: all var(--transition-base); }
.calc-row input:focus, .calc-row select:focus { outline: none; border-color: var(--color-blue); box-shadow: var(--shadow-interactive); }
.extras-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(200px * var(--scale-factor)), 1fr)); gap: 0.75rem; }
.switch { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; user-select: none; }
.switch input { width: 3.5em; height: 1.75em; appearance: none; background-color: var(--color-background-alt); border: 1px solid var(--color-border); border-radius: 99px; position: relative; transition: background-color 0.3s; cursor: pointer; }
.switch input::before { content: ""; width: 1.25em; height: 1.25em; border-radius: 50%; background-color: #fff; box-shadow: var(--shadow-sm); position: absolute; left: 0.2em; top: 50%; transform: translateY(-50%); transition: transform 0.3s; }
.switch input:checked { background-color: var(--color-blue); border-color: var(--color-blue); }
.switch input:checked::before { transform: translateY(-50%) translateX(1.75em); }
.calc-results { display: flex; flex-direction: column; gap: 1.5rem; }
.total-box { background: linear-gradient(135deg, var(--color-blue), var(--color-magenta)); color: white; padding: calc(2rem * var(--scale-factor)); border-radius: var(--radius-lg); text-align: center; }
.total-normal-price { font-size: calc(1.5rem * var(--scale-factor)); font-weight: 700; opacity: 0.6; text-decoration: line-through; margin-bottom: -0.5rem; }
#calc-total { font-size: clamp(calc(2.5rem * var(--scale-factor)), 8vw, calc(3.5rem * var(--scale-factor))); font-weight: 800; margin: 0.5rem 0 1rem; }
.total-box .subtle { font-weight: 700; opacity: 1; background-color: var(--color-yellow); color: var(--color-text); padding: 4px 8px; border-radius: 6px; display: inline-block; margin-top: 1.5rem; }
.compare-box { background-color: var(--color-background); padding: calc(1.5rem * var(--scale-factor)); border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.compare-box h4 { text-align: center; margin-bottom: 1rem; }
#compare-table { width: 100%; border-collapse: collapse; }
#compare-table th, #compare-table td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--color-border); }
#compare-table tr:last-child td { border-bottom: none; }
#compare-table td:last-child { text-align: right; font-weight: 700; }

/* Precios */

/* --- Precios --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch; /* Asegura que las tarjetas se estiren a la misma altura */
}

.price-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.price-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.price-card .price {
    font-size: 3rem;
    font-weight: var(--font-weight-black);
    color: var(--color-text);
    margin: 1rem 0;
}

.price-card .price span {
    font-size: 1.5rem;
    font-weight: 700;
    vertical-align: super;
    margin-right: 4px;
    color: var(--color-text-muted);
}

.price-card .subtle {
    margin-bottom: 1.5rem;
    min-height: 2.5em; /* Asegura altura consistente */
}

.price-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    flex-grow: 1; /* Empuja el botón hacia abajo */
}

.price-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}

.price-benefits svg {
    width: 20px;
    height: 20px;
    color: var(--color-blue);
    flex-shrink: 0;
}

.price-card .btn {
    margin-top: auto; /* Se alinea al final */
}

/* Estilos para la tarjeta destacada */
.price-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--color-magenta);
    position: relative;
    overflow: hidden;
}

.featured-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, var(--color-magenta), var(--color-orange));
    color: white;
    padding: 8px 25px;
    font-weight: 700;
    font-size: 0.9rem;
    width: 100%;
}

.price-card.featured .price {
    color: var(--color-magenta);
}

.price-card.featured .btn {
    background-color: var(--color-magenta);
    border-color: var(--color-magenta);
}

.price-card.featured .btn:hover {
    background-color: #c20060; /* Un magenta más oscuro */
    border-color: #c20060;
}

.price-card.featured .price-benefits svg {
    color: var(--color-magenta);
}



/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(320px * var(--scale-factor)), 1fr)); gap: 1.75rem; }
.blog-card { background: var(--color-background); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; transition: transform var(--transition-base), box-shadow var(--transition-base); }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-card a { text-decoration: none; color: inherit; }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-content { padding: 1.5rem; }
.blog-category { display: inline-block; margin-bottom: 0.75rem; font-size: calc(0.8rem * var(--scale-factor)); font-weight: 700; padding: 4px 10px; border-radius: 99px; color: white; }
.blog-card:nth-child(3n+1) .blog-category { background: var(--color-blue); }
.blog-card:nth-child(3n+2) .blog-category { background: var(--color-magenta); }
.blog-card:nth-child(3n+3) .blog-category { background: var(--color-orange); }
.blog-content h3 { margin-bottom: 0.5rem; font-size: calc(1.1rem * var(--scale-factor)); }
.blog-content p { color: var(--color-text-muted); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 3rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); background-color: var(--color-background); color: var(--color-text); font-family: inherit; font-size: calc(1rem * var(--scale-factor)); transition: all var(--transition-base); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--color-blue); box-shadow: var(--shadow-interactive); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
textarea { min-height: 150px; resize: vertical; }
.form-status { margin-top: 1rem; text-align: center; font-weight: 600; min-height: 1.5em; }
.contact-info { position: relative; color: white; padding: 2.5rem; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.contact-info::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('../img/acabado-2.png'); background-size: cover; background-position: center; filter: blur(5px) brightness(0.7); transform: scale(1.1); z-index: 1; }
.contact-info::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(17, 24, 39, 0.6); z-index: 2; }
.contact-info h3, .contact-info ul { position: relative; z-index: 3; }
.contact-info h3 { color: white; margin-bottom: 2rem; font-size: calc(1.5rem * var(--scale-factor)); }
.contact-info ul { list-style: none; padding: 0; margin: 0; }
.contact-info li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; font-size: calc(1.1rem * var(--scale-factor)); }
.contact-info svg { width: 24px; height: 24px; color: var(--color-blue); flex-shrink: 0; margin-top: 2px; }
.contact-info a { color: white; text-decoration: none; font-weight: 600; opacity: 0.9; transition: opacity var(--transition-base); }
.contact-info a:hover { opacity: 1; text-decoration: underline; }

/* Footer */
footer { padding: 3rem 0 2rem; background: var(--color-text); color: white; }
.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem; }
.footer-brand strong { font-size: calc(1.2rem * var(--scale-factor)); }
.footer-brand .subtle { color: white; opacity: 0.7; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: white; text-decoration: none; font-weight: 600; opacity: 0.8; transition: opacity var(--transition-base); }
.footer-links a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid #4B5563; padding-top: 2rem; text-align: center; }

/*Colores */
.antiquewhite{
    color:antiquewhite !important;
}
/* --- 4. Media Queries (Responsividad) --- */
@media (min-width: 992px) {
    .calc-grid { grid-template-columns: 1.2fr 1fr; }
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 0.9fr; text-align: left; }
  .hero-benefits { justify-content: flex-start; }
  .cta-bar { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 850px) {
  #menu-toggle { display: block; }
  #main-nav { display: none; }
  #main-nav.is-open { display: block; position: absolute; top: 80px; left: 0; right: 0; background: var(--color-background); box-shadow: var(--shadow-lg); border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }
  #main-nav ul { flex-direction: column; padding: 1rem; gap: 0; }
  #main-nav li { width: 100%; }
  #main-nav a { display: block; padding: 1rem; text-align: center; }
 
  /* 1. Ocultamos el botón secundario "Cotizar Ahora" */
  .header-cta .btn.outline {
    display: none;
  }

  /* 2. Ocultamos el subtítulo del botón principal para ahorrar espacio */
  .btn-simulator-text span,  .btn-simulator-text  strong {
    display: none;
  }
  
  /* 3. Hacemos el botón del simulador más compacto */
  .btn-simulator {
    padding: calc(4px * var(--scale-factor));
    gap: calc(8px * var(--scale-factor));
  }
  .btn-simulator-text {
    margin-right: calc(8px * var(--scale-factor));
  }
  .btn-simulator-icon {
    width: calc(36px * var(--scale-factor));
    height: calc(36px * var(--scale-factor));
  }

}
@media (max-width: 767px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-container { flex-direction: column; text-align: center; }
  .price-card.featured { transform: scale(1); }
  .services-grid-img { gap: 1.5rem; }
  .service-image-container { height: 200px; }
  .service-content { padding: 1.5rem; }
  .service-content h3 { font-size: 1.2rem; }
}


/* ===================================================================
   ESTILOS PARA NUEVO BOTÓN DEL HEADER
   =================================================================== */

.btn-simulator {
  display: flex;
  align-items: center;
  gap: calc(12px * var(--scale-factor));
  padding: calc(8px * var(--scale-factor));
  background: linear-gradient(135deg, #f7f8f9, #ffffff);
  border: 1px solid var(--color-border);
  border-radius: 99px; /* Forma de píldora */
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
}

.btn-simulator:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(0, 144, 224, 0.2);
  border-color: var(--color-blue);
}

.btn-simulator-icon {
  display: grid;
  place-items: center;
  width: calc(40px * var(--scale-factor));
  height: calc(40px * var(--scale-factor));
  background: linear-gradient(135deg, var(--color-blue), var(--color-magenta));
  border-radius: 50%;
  color: white;
  flex-shrink: 0;
}

.btn-simulator-icon svg {
  width: 60%;
  height: 60%;
}

.btn-simulator-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  margin-right: calc(12px * var(--scale-factor));
}

.btn-simulator-text strong {
  font-family: var(--font-family-headings);
  font-size: calc(1rem * var(--scale-factor));
  font-weight: var(--font-weight-black);
  color: var(--color-text);
}

.btn-simulator-text span {
  font-size: calc(0.8rem * var(--scale-factor));
  color: var(--color-text-muted);
}

/* ===================================================================
   ESTILOS PARA EL FOOTER ACTUALIZADO
   =================================================================== */

footer {
 padding: 4rem 0 2rem;
 background: var(--color-text);
 color: white;
}

.footer-container {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 3rem;
 padding-bottom: 3rem;
}

.logo-footer {
 display: inline-block;
 max-width: 150px;
 margin-bottom: 1rem;
}

.logo-footer img {
 width: 100%;
 height: auto;
 display: block;
}

.footer-brand p.subtle {
 color: white;
 opacity: 0.7;
 font-size: 0.9rem;
}

.footer-contact h3,
.footer-links h3,
.footer-social h3 {
 font-size: 1.1rem;
 font-weight: var(--font-weight-bold);
 margin-bottom: 1.25rem;
}

.footer-contact p {
 display: flex;
 align-items: flex-start;
 gap: 0.75rem;
 margin-bottom: 1rem;
 font-size: 0.95rem;
 color: white;
 opacity: 0.8;
}

.footer-contact svg {
 flex-shrink: 0;
 color: var(--color-blue);
}

.footer-links ul {
 list-style: none;
 padding: 0;
 margin: 0;
}

.footer-links li {
 margin-bottom: 0.75rem;
}

.footer-links a {
 color: white;
 text-decoration: none;
 opacity: 0.8;
 transition: opacity var(--transition-base);
}

.footer-links a:hover {
 opacity: 1;
}

.footer-social .social-icons {
 list-style: none;
 padding: 0;
 margin: 0;
 display: flex;
 gap: 1rem;
}

.footer-social .social-icons a {
 display: inline-block;
 width: 36px;
 height: 36px;
 border-radius: 50%;
 background-color: rgba(255, 255, 255, 0.1);
 color: white;
 display: grid;
 place-items: center;
 transition: background-color var(--transition-base), color var(--transition-base);
}

.footer-social .social-icons a:hover {
 background-color: var(--color-blue);
 color: white;
}

.footer-social .social-icons svg {
 width: 20px;
 height: 20px;
}

.footer-bottom {
 border-top: 1px solid #4B5563;
 padding-top: 2rem;
 text-align: center;
 font-size: 0.9rem;
 color: white;
 opacity: 0.7;
}

/* Media query para un diseño más compacto en móviles */
@media (max-width: 767px) {
 .footer-container {
   grid-template-columns: 1fr;
   text-align: center;
 }
 .footer-contact,
 .footer-links,
 .footer-social {
   text-align: center;
 }
 .footer-contact p {
   justify-content: center;
 }
 .footer-social .social-icons {
   justify-content: center;
 }
}/* ===================================================================
   ESTILOS PARA NUEVO ASISTENTE DE ARCHIVOS
   =================================================================== */

.assistant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.assistant-step {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--color-blue);
    color: white;
    font-weight: var(--font-weight-black);
    font-size: 1.2rem;
    border-radius: 50%;
}

.step-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

/* Dropzone y Previsualización */
.dropzone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    background-color: var(--color-background);
    transition: all var(--transition-base);
    cursor: pointer;
}
.dropzone:hover, .dropzone.dragover {
    background-color: #f0f7ff;
    border-color: var(--color-blue);
}
.dz-instructions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.dz-instructions svg {
    color: var(--color-blue);
    margin-bottom: 0.5rem;
}
.dz-note {
    margin-top: 1rem;
}

.preview-container.hidden, .assistant-card.hidden, .a4-pack.hidden {
    display: none;
}

.preview-wrap {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: #e5e7eb; /* Fondo para ver artes blancos */
    box-shadow: var(--shadow-inner, 0 2px 4px rgba(0,0,0,0.06) inset);
}
.preview-canvas {
    width: 100%;
    display: block;
}
.overlay-legend {
    position: absolute;
    bottom: .75rem;
    left: .75rem;
    display: flex;
    gap: .5rem;
}
.chip {
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    border: 1px solid;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}
.chip-bleed { border-color: #e11d48; color: #e11d48; }
.chip-safe { border-color: #16a34a; color: #16a34a; }

.file-info {
    text-align: center;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Tarjeta de configuración y reporte */
.assistant-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.manual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Estilos de reporte */
.report-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}
.report-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 600;
}
.report-list li::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.report-list li.ok { color: var(--color-success); }
.report-list li.ok::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='3' stroke='%231B8F4B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z' /%3E%3C/svg%3E"); }
.report-list li.warn { color: var(--color-orange); }
.report-list li.warn::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23F0A000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z' /%3E%3C/svg%3E"); }
.report-list li.err { color: var(--color-magenta); }
.report-list li.err::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23E00070'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z' /%3E%3C/svg%3E"); }
.report-list .subtle { font-weight: 400; display: block; margin-top: 0.25rem; }

/* Otros */
.a4-canvas { width: 100%; border-radius: 8px; border: 1px dashed var(--color-border); }
.actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

/* Responsividad */
@media (max-width: 992px) {
    .assistant-grid {
        grid-template-columns: 1fr;
    }
}