/*
Theme Name: Impulso Agentes
Theme URI: https://impulsoagentes.com
Description: Tema WordPress moderno para plataforma de capacitación de agentes de seguros
Version: 1.0.0
Author: Impulso Agentes
Author URI: https://impulsoagentes.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: impulso-agentes
Domain Path: /languages

Copyright (C) 2024 Impulso Agentes

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
*/

/* =====================================================
   VARIABLES CSS - Color System
   ===================================================== */

:root {
  --color-slate-50: #F9FAFB;
  --color-slate-100: #F3F4F6;
  --color-slate-200: #E5E7EB;
  --color-slate-300: #D1D5DB;
  --color-slate-400: #9CA3AF;
  --color-slate-500: #6B7280;
  --color-slate-600: #4B5563;
  --color-slate-700: #374151;
  --color-slate-800: #1F2937;
  --color-slate-900: #0F172A;

  --color-orange-600: #FF8C00;
  --color-emerald-500: #10B981;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', monospace;

  --transition-base: all 300ms ease-out;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.1);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.15);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.2);
  --shadow-orange-sm: 0 4px 12px rgba(255, 140, 0, 0.15);
  --shadow-orange-md: 0 8px 20px rgba(255, 140, 0, 0.2);
}

/* =====================================================
   RESET & BASE
   ===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-slate-900);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 700;
}

h2 {
  font-size: clamp(28px, 6vw, 32px);
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

h4 {
  font-size: 18px;
  font-weight: 600;
}

p {
  margin-bottom: 1em;
  line-height: 1.5;
}

a {
  color: var(--color-orange-600);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-slate-900);
  text-decoration: underline;
}

/* =====================================================
   BUTTONS
   ===================================================== */

button,
.button,
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  text-align: center;
  white-space: nowrap;
}

button:hover,
.button:hover,
.btn:hover {
  transform: translateY(-2px);
}

.button-primary,
.btn-primary {
  background-color: var(--color-orange-600);
  color: #ffffff;
}

.button-primary:hover,
.btn-primary:hover {
  background-color: #FF7A00;
  box-shadow: var(--shadow-orange-md);
}

.button-secondary,
.btn-secondary {
  background-color: var(--color-slate-900);
  color: #ffffff;
}

.button-secondary:hover,
.btn-secondary:hover {
  background-color: var(--color-slate-800);
}

/* =====================================================
   LAYOUT
   ===================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: var(--shadow-sm);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
}

.site-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-slate-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav {
  display: none;
  gap: 32px;
}

.site-nav a {
  color: var(--color-slate-600);
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-orange-600);
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-slate-900);
  transition: var(--transition-base);
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 16px;
  background: linear-gradient(to bottom right, #f8fafb, #ffffff);
}

@media (min-width: 768px) {
  .hero {
    padding: 120px 32px;
  }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .gradient-text {
  background: linear-gradient(135deg, var(--color-slate-900), var(--color-orange-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: var(--color-slate-600);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   CARDS & GRIDS
   ===================================================== */

.card {
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition-base);
}

.card:hover {
  border-color: rgba(255, 140, 0, 0.3);
  box-shadow: var(--shadow-orange-md);
  transform: translateY(-4px);
}

.grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =====================================================
   PRICING
   ===================================================== */

.pricing-card {
  position: relative;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.5);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  transition: var(--transition-base);
}

.pricing-card.featured {
  border-color: var(--color-orange-600);
  border-width: 2px;
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.05), rgba(255, 255, 255, 0.95));
  box-shadow: var(--shadow-orange-md);
}

.pricing-card .price {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-orange-600);
  margin: 16px 0;
}

.pricing-card .price-period {
  color: var(--color-slate-600);
}

.pricing-card ul {
  list-style: none;
  margin: 24px 0;
}

.pricing-card li {
  padding: 8px 0;
  color: var(--color-slate-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card li:before {
  content: "✓";
  color: var(--color-emerald-500);
  font-weight: bold;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */

.testimonial {
  padding: 24px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-orange-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.testimonial-stars {
  color: #FFC107;
  margin-bottom: 12px;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-slate-700);
  margin-bottom: 12px;
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-slate-900);
}

.testimonial-title {
  font-size: 12px;
  color: var(--color-slate-600);
}

/* =====================================================
   FORMS
   ===================================================== */

form {
  max-width: 500px;
  margin: 0 auto;
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-slate-900);
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-slate-300);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  margin-bottom: 16px;
  transition: var(--transition-base);
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--color-orange-600);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

form input::placeholder,
form textarea::placeholder {
  color: var(--color-slate-400);
}

form button {
  width: 100%;
}

/* =====================================================
   FOOTER
   ===================================================== */

footer {
  background-color: var(--color-slate-900);
  color: var(--color-slate-400);
  padding: 48px 16px 24px;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 32px;
}

footer h4 {
  color: white;
  margin-bottom: 16px;
}

footer a {
  color: var(--color-slate-400);
  display: block;
  margin-bottom: 8px;
}

footer a:hover {
  color: var(--color-orange-600);
}

footer .copyright {
  text-align: center;
  font-size: 14px;
  color: var(--color-slate-500);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.4s ease-out;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-slate-600);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 767px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .card {
    padding: 16px;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons button {
    width: 100%;
  }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible para accesibilidad */
:focus-visible {
  outline: 2px solid var(--color-orange-600);
  outline-offset: 2px;
}

/* =====================================================
   PRINT
   ===================================================== */

@media print {
  header,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
