/* ============================================
   ANDRÉS GUERRERO ABOGADO — Index Principal
   andresguerreroabogado.com
   Estilo: Corporativo Serio
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ---------- Variables ---------- */
:root {
  --navy-900: #0A1628;
  --navy-800: #0F1B2D;
  --navy-700: #152238;
  --navy-600: #1B2A4A;
  --navy-500: #243656;
  --gold-500: #C8A45C;
  --gold-400: #D4B36E;
  --gold-300: #E0C482;
  --gold-600: #B08D3E;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F0F1F3;
  --gray-200: #E1E3E6;
  --gray-300: #C5C9CE;
  --gray-400: #8E939B;
  --gray-500: #6B717A;
  --gray-600: #4A4F57;
  --gray-700: #2E3338;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.18);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.25);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 0;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-area img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-text .name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-900);
  line-height: 1.2;
}
.logo-text .tagline {
  font-size: .75rem;
  color: var(--gray-500);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--white);
  font-weight: 600;
  font-size: .85rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}
.header-cta:hover {
  background: #1DA851;
  transform: translateY(-1px);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: 80px 0 0;
  overflow: hidden;
}
.hero .container {
  display: flex;
  align-items: flex-end;
  gap: 60px;
}
.hero-content {
  flex: 1;
  padding-bottom: 80px;
}
.hero-overline {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero h1 span {
  color: var(--gold-400);
  font-style: italic;
  font-weight: 600;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--gray-300);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-primary:hover {
  background: #1DA851;
  border-color: #1DA851;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
}
.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* Hero Photo */
.hero-photo {
  flex-shrink: 0;
  width: 380px;
  position: relative;
}
.hero-photo::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(200,164,92,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  object-fit: cover;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
}

/* ========================================
   SERVICIOS
   ======================================== */
.servicios {
  padding: 90px 0;
  background: var(--gray-50);
}
.section-overline {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold-600);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 50px;
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.servicio-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 36px 30px 30px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.servicio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-400);
}
.servicio-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  margin-bottom: 20px;
}
.servicio-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
  line-height: 1.3;
}
.servicio-card p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 18px;
}
.servicio-lista {
  margin-bottom: 24px;
  flex: 1;
}
.servicio-lista li {
  position: relative;
  padding-left: 18px;
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 8px;
  line-height: 1.5;
}
.servicio-lista li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--gold-500);
  border-radius: 50%;
}
.servicio-cta {
  display: inline-block;
  font-weight: 600;
  font-size: .88rem;
  color: var(--gold-600);
  transition: var(--transition);
  margin-top: auto;
}
.servicio-cta:hover {
  color: var(--navy-900);
}

/* ========================================
   CTA FINAL
   ======================================== */
.cta-final {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: 70px 0;
  text-align: center;
}
.cta-final h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-final p {
  font-size: 1.05rem;
  color: var(--gray-300);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 0 30px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-brand strong {
  display: block;
  font-size: .95rem;
}
.footer-brand span {
  display: block;
  font-size: .78rem;
  color: var(--gray-400);
}
.footer-contact {
  text-align: right;
}
.footer-contact a {
  display: block;
  color: var(--gold-400);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
}
.footer-contact a:hover {
  color: var(--gold-300);
}
.footer-contact span {
  display: block;
  font-size: .78rem;
  color: var(--gray-400);
  margin-top: 2px;
}
.footer-bottom {
  text-align: center;
}
.footer-bottom p {
  font-size: .8rem;
  color: var(--gray-400);
}
.footer-bottom a {
  color: var(--gold-400);
  transition: var(--transition);
}
.footer-bottom a:hover { color: var(--gold-300); }
.disclaimer {
  margin-top: 8px;
  font-size: .72rem !important;
  opacity: .5;
}

/* ========================================
   FLOATING WHATSAPP
   ======================================== */
.floating-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 14px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: var(--transition);
}
.floating-wa svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.floating-wa:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(37,211,102,.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero .container { gap: 40px; }
  .hero h1 { font-size: 2.6rem; }
  .hero-photo { width: 320px; }
  .servicios-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .hero { padding: 50px 0 0; }
  .hero .container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }
  .hero-content { padding-bottom: 50px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-photo { width: 260px; margin: 0 auto; }
  .section-title { font-size: 1.8rem; }
  .cta-final h2 { font-size: 1.6rem; }
  .footer-top {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-contact { text-align: center; }
  .floating-wa span { display: none; }
  .floating-wa { padding: 16px; border-radius: 50%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: .95rem; }
  .btn { padding: 12px 22px; font-size: .9rem; }
  .btn-lg { padding: 14px 28px; }
  .servicio-card { padding: 28px 22px 24px; }
  .header-cta span { display: none; }
}
