/* ============================================
   COMERCIO NOVA - Estilos Globales
   ============================================ */

:root {
  --primary: #1a2e4a;
  --primary-light: #2c4a7c;
  --accent: #e8a838;
  --accent-hover: #d4952e;
  --text: #333333;
  --text-light: #666666;
  --bg: #ffffff;
  --bg-light: #f7f8fa;
  --bg-dark: #0f1c2e;
  --border: #e0e4e8;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  background: var(--bg);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent);
}

.nav-list {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.nav-list a:hover {
  color: var(--primary);
}

.btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition);
}

.btn-nav:hover {
  background: var(--accent-hover);
}

.btn-nav::after {
  display: none !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 32px;
  opacity: 0.9;
  line-height: 1.7;
}

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232,168,56,0.3);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px);
}

/* ============================================
   SECTIONS GENERALES
   ============================================ */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============================================
   SERVICIOS CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-align: center;
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: #fff;
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   SOBRE NOSOTROS
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 4rem;
}

.about-content h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-list {
  margin: 20px 0;
}

.about-list li {
  padding: 8px 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-list li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============================================
   ESTADISTICAS
   ============================================ */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
  color: #fff;
}

.stat-item h3 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.testimonial-card .stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.testimonial-card p {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 18px;
  line-height: 1.6;
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-author .name {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.testimonial-author .role {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 70px 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.cta-section p {
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.contact-item span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.contact-form {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border var(--transition);
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,168,56,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232,168,56,0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: #ccc;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #aaa;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #aaa;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* ============================================
   PAGE HEADER (subpaginas)
   ============================================ */
.page-header {
  padding: 130px 0 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.85;
  font-size: 1.05rem;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 30px 0 12px;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 20px 0 8px;
}

.legal-content p {
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal-content ul li {
  color: var(--text-light);
  margin-bottom: 6px;
  line-height: 1.6;
}

/* ============================================
   SERVICIOS PAGE
   ============================================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail-img {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3.5rem;
}

.service-detail-content h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.service-detail-content p {
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.7;
}

.service-detail-content ul {
  list-style: none;
}

.service-detail-content ul li {
  padding: 6px 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-detail-content ul li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 740px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: var(--bg);
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question .icon {
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 22px 18px;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform var(--transition);
  }

  .nav-list.active {
    transform: translateY(0);
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-list a::after {
    display: none;
  }

  .btn-nav {
    text-align: center;
    margin-top: 8px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .page-header {
    padding: 110px 0 40px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
