/* ==========================================================================
   MAC ESTUDIO JURÍDICO - SISTEMA DE DISEÑO Y ESTILOS
   ========================================================================== */

/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Variables CSS */
:root {
  --bg-primary: #070c14;
  --bg-secondary: #0f1624;
  --bg-card: #151e30;
  --accent-gold: #cfa86b;
  --accent-gold-hover: #dfb87b;
  --accent-gold-rgb: 207, 168, 107;
  --accent-gold-glow: rgba(207, 168, 107, 0.12);
  --text-white: #ffffff;
  --text-gray: #e2e8f0;
  --text-muted: #8a9bb4;
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-gold: 0 10px 30px rgba(207, 168, 107, 0.08);
  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px rgba(207, 168, 107, 0.2);
  --max-width: 1200px;
}

/* Reset y Estilos Generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-gray);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border: 2px solid var(--bg-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Tipografía y Elementos de Texto */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--text-white);
  line-height: 1.25;
}

p {
  color: var(--text-muted);
  font-weight: 300;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Botones Comunes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-gold);
  border: 1px solid rgba(207, 168, 107, 0.4);
}

.btn-secondary:hover {
  background-color: var(--accent-gold-glow);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Contenedor Auxiliar */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(7, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(207, 168, 107, 0.1);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background-color: var(--bg-primary);
  padding: 0.75rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-smooth);
}

.header.scrolled .container {
  height: 65px;
}

/* Logo MAC */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border: 2px solid var(--accent-gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent-gold);
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: 0.8s;
}

.logo:hover .logo-icon::before {
  left: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1;
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-top: 2px;
}

/* Contacto en Header */
.header-contact {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-white);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(207, 168, 107, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  transition: var(--transition-smooth);
}

.contact-info:hover .contact-info-icon {
  background-color: var(--accent-gold-glow);
  border-color: var(--accent-gold);
  color: var(--accent-gold-hover);
  box-shadow: 0 0 10px rgba(207, 168, 107, 0.1);
}

.contact-info-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.contact-info-text a {
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-info-text a:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 75% 30%, rgba(21, 30, 48, 0.8) 0%, var(--bg-primary) 70%);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(207, 168, 107, 0.04) 0%, transparent 70%);
  top: -100px;
  left: -200px;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

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

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 580px;
  color: var(--text-gray);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-width: 200px;
}

/* Imagen del Hero */
.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(207, 168, 107, 0.15);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent-gold);
  margin: 12px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 3;
  transition: var(--transition-smooth);
}

.hero-image-wrapper:hover::before {
  margin: 8px;
  border-color: var(--accent-gold-hover);
  box-shadow: inset 0 0 15px rgba(207, 168, 107, 0.2);
}

.hero-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
  filter: saturate(0.9) contrast(1.05);
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.03);
}

/* Floating Card en el Hero */
.floating-badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background-color: var(--bg-card);
  border: 1px solid var(--accent-gold);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow-card), var(--shadow-gold);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 4;
  animation: float 4s ease-in-out infinite;
}

.floating-badge-icon {
  color: var(--accent-gold);
  font-size: 1.5rem;
}

.floating-badge-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 2px;
}

.floating-badge-text p {
  font-size: 0.75rem;
  color: var(--text-white);
  font-weight: 500;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   ESTADÍSTICAS
   ========================================================================== */
.stats {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(207, 168, 107, 0.1);
  border-bottom: 1px solid rgba(207, 168, 107, 0.1);
  padding: 4rem 0;
  position: relative;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1px;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(207, 168, 107, 0.3), transparent);
}

.stat-number {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

/* ==========================================================================
   ESPECIALIDADES (NUESTROS SERVICIOS)
   ========================================================================== */
.specialties {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
}

.section-title span {
  color: var(--accent-gold);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.specialty-card {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(207, 168, 107, 0.08);
  border-radius: 6px;
  padding: 3rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.specialty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.specialty-card:hover {
  transform: translateY(-5px);
  border-color: rgba(207, 168, 107, 0.25);
  box-shadow: var(--shadow-card), var(--shadow-gold);
}

.specialty-card:hover::before {
  transform: scaleX(1);
}

.specialty-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.specialty-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-card);
  border: 1px solid rgba(207, 168, 107, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent-gold);
  transition: var(--transition-smooth);
}

.specialty-card:hover .specialty-icon {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow);
}

.specialty-title {
  font-size: 1.4rem;
  font-weight: 600;
}

.specialty-description {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.specialty-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.specialty-list li {
  font-size: 0.875rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.specialty-list li i {
  color: var(--accent-gold);
  font-size: 0.8rem;
}

/* ==========================================================================
   PROPUESTA DE VALOR / INTERMEDIO
   ========================================================================== */
.about {
  padding: 8rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(207, 168, 107, 0.05);
  border-bottom: 1px solid rgba(207, 168, 107, 0.05);
  position: relative;
}

.about .container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(207, 168, 107, 0.1);
  height: 480px;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) sepia(0.1) contrast(1.1);
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-secondary) 10%, transparent 80%);
}

.about-image-card {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  background-color: rgba(21, 30, 48, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(207, 168, 107, 0.3);
  padding: 2rem;
  border-radius: 4px;
  text-align: center;
}

.about-image-card-title {
  font-size: 1.6rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.about-image-card-desc {
  font-size: 0.9rem;
  color: var(--text-white);
  font-weight: 500;
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.about-feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background-color: var(--bg-card);
  border: 1px solid rgba(207, 168, 107, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.25rem;
}

.about-feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
}

.about-feature-desc {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ==========================================================================
   FORMULARIO DE CONTACTO
   ========================================================================== */
.contact-section {
  padding: 8rem 0;
  position: relative;
  background: radial-gradient(circle at 20% 80%, rgba(21, 30, 48, 0.6) 0%, var(--bg-primary) 80%);
}

.contact-section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(207, 168, 107, 0.03) 0%, transparent 70%);
  bottom: -200px;
  right: -100px;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: flex-start;
}

.contact-details {
  position: relative;
}

.contact-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-title {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.contact-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.contact-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card-item {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(207, 168, 107, 0.05);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.contact-card-item:hover {
  border-color: rgba(207, 168, 107, 0.2);
  transform: translateX(5px);
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid rgba(207, 168, 107, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.25rem;
}

.contact-card-item:hover .contact-card-icon {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
}

.contact-card-info h4 {
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.25rem;
}

.contact-card-info p {
  font-size: 0.95rem;
  color: var(--text-white);
  font-weight: 500;
}

.contact-card-info a {
  font-size: 0.95rem;
  color: var(--text-white);
  font-weight: 500;
}

.contact-card-info a:hover {
  color: var(--accent-gold);
}

/* El Formulario */
.form-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(207, 168, 107, 0.15);
  border-radius: 6px;
  padding: 3.5rem;
  box-shadow: var(--shadow-card), var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent-gold);
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-header h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
}

.form-input, .form-select, .form-textarea {
  background-color: var(--bg-card);
  border: 1px solid rgba(207, 168, 107, 0.15);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(207, 168, 107, 0.15);
  background-color: rgba(21, 30, 48, 0.9);
}

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

/* Personalización del dropdown select */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23cfa86b%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

/* Pantalla de Éxito / Feedback de envío */
.form-success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0;
  animation: fadeIn 0.5s forwards;
}

.success-icon {
  width: 70px;
  height: 70px;
  background-color: var(--accent-gold-glow);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow);
}

.success-title {
  font-size: 1.75rem;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.success-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 2rem;
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: #04070d;
  border-top: 1px solid rgba(207, 168, 107, 0.1);
  padding: 5rem 0 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  font-size: 1.25rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 38px;
  height: 38px;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(207, 168, 107, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-item i {
  color: var(--accent-gold);
  margin-top: 3px;
}

.footer-contact-item div p {
  color: var(--text-muted);
}

.footer-contact-item div span {
  display: block;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Clases de Estado)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Retardos para efectos secuenciales */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVO)
   ========================================================================== */

/* Escritorio Pequeño / Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero .container {
    gap: 2rem;
  }
  .hero-title {
    font-size: 2.85rem;
  }
  .about .container {
    gap: 3rem;
  }
  .contact-grid {
    gap: 3rem;
  }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .header .container {
    height: 70px;
  }
  .header-contact {
    gap: 1rem;
  }
  .header-contact .btn {
    display: none; /* Oculta botón en tablet/mobile del header para dar espacio */
  }
  
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
  }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-image-container {
    order: -1; /* Muestra la imagen arriba en mobile */
  }
  .hero-image {
    height: 400px;
  }
  .floating-badge {
    left: 10px;
    bottom: -20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .stat-item::after {
    display: none; /* Oculta divisor en mobile vertical */
  }

  .specialties {
    padding: 5rem 0;
  }
  .specialties-grid {
    grid-template-columns: 1fr;
  }
  .specialty-card {
    padding: 2.5rem;
  }

  .about {
    padding: 5rem 0;
  }
  .about .container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-image-wrapper {
    height: 360px;
  }

  .contact-section {
    padding: 5rem 0;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .form-wrapper {
    padding: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-brand p {
    max-width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Teléfonos Móviles Pequeños (max-width: 480px) */
@media (max-width: 480px) {
  .logo-name {
    font-size: 1.5rem;
  }
  .contact-info {
    display: none; /* Oculta info telefónica para priorizar logo en pantallas muy chicas */
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .specialty-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
