/* ===========================================
   CSG ABOGADOS - Estilo editorial limpio
   Basado en estilo stock-ceramic.com
   Colores: Rojo #C41E3A, Negro #1a1a1a, Blanco #fff
   =========================================== */

:root {
  --accent: #C41E3A;
  --accent-dark: #9B152E;
  --text: #1a1a1a;
  --text-light: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-warm: #fafafa;
  --bg-gray: #f5f5f5;
  --border: #e5e5e5;
  --radius: 12px;
  --radius-sm: 8px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { color: var(--text-light); line-height: 1.7; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 90px 0; }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: rgba(196,30,58,0.05); }
.btn-dark {
  background: var(--text);
  color: #fff;
}
.btn-dark:hover { background: #333; }

/* ===========================================
   HEADER
   =========================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-desktop a {
  font-size: 15px;
  color: var(--text-light);
  position: relative;
  padding-bottom: 4px;
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--text); }
.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.header-cta a:hover { background: var(--accent-dark); }

.mobile-toggle {
  display: none;
  padding: 8px;
  color: var(--text);
}
.mobile-toggle svg { width: 24px; height: 24px; }

.mobile-nav {
  display: none;
  position: absolute;
  top: 72px; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.35s ease;
}
.mobile-nav.open {
  max-height: 400px;
  opacity: 1;
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav a:last-child { border-bottom: none; }

/* ===========================================
   HERO
   =========================================== */
.hero {
  padding-top: 72px;
  background: var(--bg-warm);
}
.hero-inner {
  padding: 100px 0 80px;
  text-align: center;
}
.hero-label {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(196,30,58,0.08);
  border: 1px solid rgba(196,30,58,0.15);
  border-radius: 100px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}
.hero h1 {
  max-width: 800px;
  margin: 0 auto 20px;
}
.hero h1 .accent { color: var(--accent); }
.hero > .container > .hero-inner > p {
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-light);
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================================
   FEATURES (Ventajas)
   =========================================== */
.features {
  background: var(--bg);
  padding-bottom: 40px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.feature-item h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================================
   ABOUT (Nuestra Esencia)
   =========================================== */
.about {
  background: var(--bg-gray);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8e8e8, #f0f0f0);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.about-image svg {
  width: 80px; height: 80px;
  color: #bbb;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.about-content h2 { margin-bottom: 24px; }
.about-content p {
  margin-bottom: 16px;
  font-size: 16px;
}
.about-content .btn { margin-top: 12px; }
.trust-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 6px;
}
.trust-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-light);
  font-size: 15px;
}
.trust-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===========================================
   SERVICES (Servicios destacados)
   =========================================== */
.services {
  background: var(--bg);
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 17px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.3s ease;
}
.service-card:hover {
  border-color: rgba(196,30,58,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}
.service-card h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}
.service-card a:hover { gap: 8px; }
.service-card.featured {
  background: #fff;
  border-color: rgba(196,30,58,0.28);
}
.service-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.seo-block {
  background: var(--bg-gray);
}
.seo-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.seo-grid h2 { margin-bottom: 18px; }
.seo-grid p { margin-bottom: 14px; }
.seo-list {
  display: grid;
  gap: 14px;
}
.seo-list li {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-light);
}
.seo-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

/* ===========================================
   CTA BANNER
   =========================================== */
.cta-banner {
  background: var(--accent);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  margin-bottom: 28px;
}
.cta-banner .btn {
  background: #fff;
  color: var(--accent);
}
.cta-banner .btn:hover { background: #f5f5f5; }

/* ===========================================
   CONTACT
   =========================================== */
.contact-section {
  background: var(--bg-warm);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p {
  margin-bottom: 40px;
  font-size: 16px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item svg {
  width: 22px; height: 22px;
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}
.contact-item h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--text);
}
.contact-item p,
.contact-item a {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.contact-item a:hover { color: var(--accent); }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,30,58,0.08);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.contact-form .btn {
  width: 100%;
  justify-content: center;
}

/* ===========================================
   PAGE HEADER
   =========================================== */
.page-header {
  padding-top: 72px;
  background: var(--bg-warm);
  text-align: center;
}
.page-header-inner {
  padding: 80px 0 60px;
}
.page-header h1 {
  margin-bottom: 14px;
}
.page-header h1 .accent { color: var(--accent); }
.page-header p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 60px;
  padding: 60px 0;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-col p,
.footer-col a {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  display: block;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--accent); }
.footer-logo {
  margin-bottom: 16px;
}
.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .seo-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid,
  .contact-grid { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-desktop, .header-cta { display: none; }
  .mobile-toggle { display: block; }
  .mobile-nav { display: block; }
  .hero-inner { padding: 60px 0 50px; }
  .hero h1 { font-size: 2.2rem; }
  .hero > .container > .hero-inner > p { font-size: 16px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-header-inner { padding: 60px 0 40px; }
  .cta-banner { padding: 60px 0; }
}
