/* P&A Consultoría Jurídico Fiscal - Estilos Principales */

/* ===== VARIABLES CSS ===== */
:root {
  /* Paleta de colores mejorada */
  --color-primary: #08794B;
  --color-primary-light: #0A9B5C;
  --color-primary-dark: #065A37;
  --color-primary-darker: #044129;
  --color-accent: #2FA87A;
  --color-accent-light: #4BC896;
  --color-background-soft: #E6F4EE;
  --color-background-gradient: linear-gradient(135deg, #E6F4EE 0%, #F0F9F4 100%);
  --color-white: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #4A5568;
  --color-text-light: #718096;
  --color-dividers: #E2E8F0;
  --color-alert: #F59E0B;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  --gradient-primary-dark: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  --gradient-hero: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-accent) 100%);
  --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  --gradient-section: linear-gradient(180deg, #FAFBFC 0%, #F1F5F9 100%);
  
  /* Sombras mejoradas */
  --shadow-sm: 0 2px 4px rgba(8, 121, 75, 0.08);
  --shadow-md: 0 4px 12px rgba(8, 121, 75, 0.12);
  --shadow-lg: 0 8px 24px rgba(8, 121, 75, 0.15);
  --shadow-xl: 0 16px 40px rgba(8, 121, 75, 0.18);
  
  /* Tipografía */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Espaciado */
  --container-max-width: 1280px;
  --gutter: 24px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  
  /* Breakpoints */
  --mobile: 360px;
  --tablet: 768px;
  --desktop: 1024px;
  --large: 1280px;
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
}

h2 {
  font-size: 2rem;
  color: var(--color-primary);
}

h3 {
  font-size: 1.5rem;
  color: var(--color-primary-dark);
}

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.text-secondary {
  color: var(--color-text-secondary);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid {
  display: grid;
  gap: var(--gutter);
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* ===== COMPONENTES REUTILIZABLES ===== */

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white) !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--gradient-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: linear-gradient(145deg, var(--color-white) 0%, #F8FAFC 100%);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--gradient-primary);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* Cards */
.card {
  background: var(--gradient-card);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-dividers);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

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


/* Header */
.header {
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
  background: var(--gradient-hero);
  color: var(--color-white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
  opacity: 0.6;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.1) 100%);
}

/* Hero con imagen para NOSOTROS */
.hero.hero--foto{
  /* imagen + overlay para legibilidad */
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.30)),
    url('/assets/img/nosotros.jpg') center / cover no-repeat;
  color: #fff;
  /* si te gusta el efecto parallax en desktop */
  background-attachment: fixed;
}

/* Quitamos el overlay radial que trae tu .hero por defecto */
.hero.hero--foto::before{ content:none; }

/* Asegura contraste del texto sobre la foto */
.hero.hero--foto h1,
.hero.hero--foto p{
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* En móviles desactiva el fixed (iOS lo hace brusco) */
@media (max-width: 768px){
  .hero.hero--foto{ background-attachment: scroll; }
    .hero.hero--foto2{ background-attachment: scroll; }
}

.hero.hero--foto2{
  /* imagen + overlay para legibilidad */
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.30)),
    url('/assets/img/asesoria.jpg') center / cover no-repeat;
  color: #fff;
  /* si te gusta el efecto parallax en desktop */
  background-attachment: fixed;
}

.hero.hero--main-foto{
  /* imagen + overlay para legibilidad */
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.30)),
    url('/assets/img/honestidad.jpg') center / cover no-repeat;
  color: #fff;
  /* si te gusta el efecto parallax en desktop */
  background-attachment: fixed;
  background-size: auto;
}

.hero.hero--nos-foto1{
  /* imagen + overlay para legibilidad */
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.30)),
    url('/assets/img/empresas.webp') center / cover no-repeat;
  color: #fff;
  /* si te gusta el efecto parallax en desktop */
  background-attachment: fixed;
  background-size: auto;
}

.hero.hero--nos-foto2{
  /* imagen + overlay para legibilidad */
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.30)),
    url('/assets/img/beneficios.jpg') center / cover no-repeat;
  color: #fff;
  /* si te gusta el efecto parallax en desktop */
  background-attachment: fixed;
  background-size: auto;
}

.hero.hero--nos-foto3{
  /* imagen + overlay para legibilidad */
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.30)),
    url('/assets/img/engranes.jpg') center / cover no-repeat;
  color: #fff;
  /* si te gusta el efecto parallax en desktop */
  background-attachment: fixed;
  background-size: auto;
}

.hero.hero--nos-foto4{
  /* imagen + overlay para legibilidad */
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.30)),
    url('/assets/img/trust.jpg') center / cover no-repeat;
  color: #fff;
  /* si te gusta el efecto parallax en desktop */
  background-attachment: fixed;
  background-size: auto;
}


/* Quitamos el overlay radial que trae tu .hero por defecto */
.hero.hero--foto2::before{ content:none; }

/* Asegura contraste del texto sobre la foto */
.hero.hero--foto2 h1,
.hero.hero--foto2 p{
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}



.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  line-height: 1.2;
}

.hero p {
  font-size: 1.375rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Secciones */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background: var(--gradient-section);
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(8, 121, 75, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(47, 168, 122, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-green {
  padding: 5rem 0;
  padding-bottom: 7 rem;
  position: relative;
  /* background: var(--gradient-primary-dark); */
  background: var(--gradient-hero);
  color: var(--color-white);
}

.section-green p{
  color: var(--color-white);
}

.section-green-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  color: #FFFFFF;
}

.section-green-title h2 {
  position: relative;
  display: inline-block;
  color: #FFFFFF;
}

.section-green-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
}

/* Footer */
.footer {
  background: var(--gradient-primary-dark);
  
  padding: 4rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-section p {
 color: var(--color-white);
}

.footer-section a {
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
  opacity: 0.7;
}

.footer-bottom p {
  color: var(--color-white);
}

/* Formularios */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-dividers);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(8, 121, 75, 0.1);
}

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

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  animation: none;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.whatsapp-btn:hover::before {
  opacity: 0.3;
  animation: whatsapp-ring 1.5s infinite;
}

@keyframes whatsapp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes whatsapp-ring {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Utilidades */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center h3 { color: navy;}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

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

/* Mobile First - Base styles above are for mobile */

/* Tablet */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .nav {
    gap: 2.5rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero {
    padding: 6rem 0;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large screens */
@media (min-width: 1280px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

/* Mobile menu (hamburger) */
/* Mobile menu (hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Blog styles */
.blog-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.blog-filters .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.blog-filters .btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.blog-post {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.badge {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.date {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.blog-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--color-dividers);
}

.read-time {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pagination-info {
  color: var(--color-text-secondary);
}

/* Newsletter form */
.newsletter-form {
  margin-top: 2rem;
}

/* Alliance logos */
.alliance-logo {
  transition: transform 0.3s ease;
}

.alliance-logo:hover {
  transform: scale(1.05);
}

/* Service sections */
.service-section {
  margin-bottom: 3rem;
}

.service-section:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .nav.nav-open {
    display: flex;
  }
  
  .nav li {
    margin: 0.5rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .blog-filters {
    gap: 0.5rem;
  }
  
  .blog-filters .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .blog-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .pagination {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Focus states para accesibilidad */
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Estados de error en formularios */
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #EF4444;
}

.error-message {
  color: #EF4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--color-primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.error {
  background: #EF4444;
}

.toast.success {
  background: var(--color-accent);
}



/* Mejoras adicionales para mayor atractivo */

/* Efectos de hover mejorados para enlaces */
a {
  transition: all 0.3s ease;
}

/* Mejoras en la tipografía */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  color: var(--color-primary-dark);
}

h3 {
  font-size: 1.875rem;
  color: var(--color-primary);
}

/* Efectos de parallax sutil */
.hero {
  background-attachment: fixed;
}

/* Mejoras en los formularios */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.form-input:focus + .form-label,
.form-textarea:focus + .form-label,
.form-select:focus + .form-label {
  color: var(--color-primary);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Efectos de brillo en elementos importantes */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

/* Mejoras en el header */
.header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-dividers);
}

/* Efectos de hover en las cards de servicio */
.card-service {
  overflow: hidden;
}

.card-service::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(8, 121, 75, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-service:hover::after {
  opacity: 1;
}

/* Mejoras en la navegación */
.nav a {
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

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

/* Scroll suave mejorado */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Mejoras en las sombras para profundidad */
.card,
.btn,
.form-input,
.form-textarea,
.form-select {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efectos de loading */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Mejoras responsivas adicionales */
@media (max-width: 767px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .whatsapp-btn {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }
}

/* Mejoras en accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible mejorado */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* ===== Footer Pro (mejorado) ===== */
/* Conserva tu fondo existente del footer y su grid; solo lo elevamos visualmente. */
.footer.footer--pro { padding-top: 4.5rem; } /* un poco más de aire sobre el contenido */

.foot-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 2.25rem 2rem;
  position: relative;
  z-index: 1;
}

/* Títulos con chip de icono */
.foot-title{
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  color: var(--color-white);
}
.icon-chip{
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

/* Columnas */
.foot-col p { color: rgba(255,255,255,.92); }
.foot-brand p { max-width: 32ch; }

.foot-address p{
  display: flex; gap: .6rem; align-items: flex-start;
}
.foot-address i{ margin-top: .15rem; }

/* Listas con iconos */
.foot-list{
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .55rem;
}
.foot-list li{
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: .6rem;
  color: var(--color-white);
}
.foot-list li i{
  color: rgba(255,255,255,.9);
  opacity: .9;
  margin-top: .2rem;
}
.foot-list a{
  color: var(--color-white);
  text-decoration: none;
  opacity: .9;
  transition: opacity .2s ease, transform .2s ease;
}
.foot-list a:hover{ opacity: 1; transform: translateX(2px); }

/* Redes sociales */
.foot-socials{ display: flex; gap: .5rem; margin-top: 1rem; }
.social{
  width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  transition: transform .2s ease, background .2s ease;
}
.social:hover{ transform: translateY(-2px); background: rgba(255,255,255,.18); }

/* Línea superior & copyright: ya la tenías, conservamos estilo */
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.22); padding-top: 1rem; text-align: center; opacity: .85; }

/* Responsive */
@media (max-width: 1024px){
  .foot-grid{ grid-template-columns: repeat(2, minmax(240px,1fr)); }
}
@media (max-width: 640px){
  .foot-grid{ grid-template-columns: 1fr; }
  .foot-title{ margin-bottom: .75rem; }
  .foot-brand p{ max-width: none; }
}
