/* ==========================================
   CRESLLA SOLUCIONES - ESTILOS COMPLETOS CSS
   ========================================== */

:root {
  --primary: #6b21a8;
  --primary-dark: #581c87;
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --bg-light: #f4f2f8;
  --text-dark: #2b2b2b;
  --white: #ffffff;
  --border-color: #e5d9f2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================
   NAVEGACIÓN FIJA (ONE-PAGE HEADER)
   ========================================== */
header {
  background: var(--white);
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 13px;
  transition: color 0.2s;
  cursor: pointer;
}

nav a:hover, nav a.active {
  color: var(--primary);
}

.btn-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(107, 33, 168, 0.2);
  transition: background 0.2s, transform 0.2s;
}

.btn-nav:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

main {
  padding-top: 75px;
}

/* ==========================================
   SECCIONES Y ENCABEZADOS GENERALES
   ========================================== */
section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 40px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   1. HERO / BIENVENIDA
   ========================================== */
.hero {
  background: linear-gradient(135deg, #f8f5fc 0%, #ede5f7 100%);
  text-align: center;
  padding: 80px 20px;
  max-width: 100%;
  border-bottom: 4px solid var(--primary);
}

.hero-content {
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1.3;
}

.hero p {
  font-size: 16px;
  color: #555;
  margin-bottom: 28px;
  font-style: italic;
  font-weight: 500;
}

.hero-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  transition: background 0.2s, transform 0.2s;
}

.hero-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ==========================================
   2. GRILLA Y TARJETAS EN CASILLAS (CARD)
   Aplica de forma idéntica a Beneficios y Servicios
   ========================================== */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  padding: 26px 22px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(107, 33, 168, 0.04);
  border-top: 4px solid var(--primary);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(107, 33, 168, 0.08);
}

.card h3 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
}

.card p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.card strong {
  color: var(--text-dark);
}

/* ==========================================
   3. BLOQUES Y BADGES DE SERVICIOS
   ========================================== */
.service-category-block {
  margin-bottom: 50px;
}

.service-category-block:last-child {
  margin-bottom: 0;
}

.category-badge {
  display: inline-block;
  background: #f0edf5;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
}

.category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

/* ==========================================
   4. SECCIÓN COTIZADOR
   ========================================== */
.cotizador-section {
  background: var(--white);
  max-width: 100%;
  border-top: 1px solid var(--border-color);
}

.cotizador-frame-container {
  max-width: 900px;
  margin: auto;
  background: var(--bg-light);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 6px 20px rgba(107, 33, 168, 0.08);
  border: 1px solid var(--border-color);
}

/* ==========================================
   5. FOOTER
   ========================================== */
footer {
  background: #1f1b24;
  color: #aaa;
  text-align: center;
  padding: 35px 20px;
  font-size: 13px;
}

footer p {
  margin-bottom: 6px;
}

footer b {
  color: var(--white);
}

/* ==========================================
   ADAPTACIÓN MÓVIL (RESPONSIVE)
   ========================================== */
@media (max-width: 768px) {
  .nav-container { padding: 10px 15px; }
  .logo img { max-height: 38px; }
  nav ul { gap: 8px; }
  nav a { font-size: 11px; }
  .btn-nav { padding: 6px 10px; }
  .hero { padding: 60px 15px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 13px; }
  .section-title { font-size: 22px; }
  .section-subtitle { font-size: 13px; margin-bottom: 25px; }
  .category-title { font-size: 16px; }
  .grid-container { grid-template-columns: 1fr; gap: 15px; }
  .card { padding: 20px 18px; }
}