/**
 * A&Y Pressure Washing LLC - Enhancements CSS
 * New features: WhatsApp button, Secondary color usage, Responsive improvements
 * Version: 1.1.0
 */

/* ======================
   HEADER ENHANCEMENTS
   ====================== */

/* Larger logo support */
.header__logo img {
  height: var(--logo-height);
  max-width: 250px;
  width: auto;
}

@media (max-width: 768px) {
  .header__logo img {
    height: var(--logo-height-mobile);
    max-width: 200px;
  }
}

/* Language switcher positioned to the right */
.header .container {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.lang-switcher {
  margin-left: auto !important;
  order: 3;
}

.menu-toggle {
  order: 4;
}

@media (max-width: 768px) {
  .lang-switcher {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
  }
}

/* ======================
   WHATSAPP FLOATING BUTTON
   ====================== */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  font-size: 35px;
  color: white;
}

.whatsapp-tooltip {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  color: #333;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: white;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 85px;
}

/* WhatsApp Button Animation */
@keyframes whatsappPulse {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
  }
}

.whatsapp-float {
  animation: whatsappPulse 2s infinite;
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float i {
    font-size: 28px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .whatsapp-float {
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
  }
  
  .whatsapp-float i {
    font-size: 32px;
  }
}

/* ======================
   SECONDARY COLOR ENHANCEMENTS
   ====================== */

/* New vibrant button style */
.btn-secondary-vibrant {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-vibrant));
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(151, 39, 90, 0.3);
}

.btn-secondary-vibrant:hover {
  background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-secondary));
  box-shadow: 0 6px 20px rgba(151, 39, 90, 0.4);
  transform: translateY(-2px);
  color: white;
}

/* Accent decorative elements */
.accent-border-top {
  border-top: 4px solid var(--color-secondary);
}

.accent-border-bottom {
  border-bottom: 4px solid var(--color-secondary);
}

.accent-border-left {
  border-left: 4px solid var(--color-secondary);
  padding-left: var(--spacing-lg);
}

/* Section title with accent underline */
.section__title.accent-underline {
  position: relative;
  display: inline-block;
}

.section__title.accent-underline::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-vibrant));
  border-radius: 2px;
}

/* Secondary color links */
a.link-secondary {
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a.link-secondary::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary-vibrant);
  transition: width 0.3s ease;
}

a.link-secondary:hover {
  color: var(--color-secondary-vibrant);
}

a.link-secondary:hover::after {
  width: 100%;
}

/* Badge with secondary color */
.badge-secondary {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-vibrant));
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(151, 39, 90, 0.25);
}

/* Icon with secondary gradient */
.icon-secondary {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-vibrant));
  border-radius: 12px;
  color: white;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(151, 39, 90, 0.3);
  transition: transform 0.3s ease;
}

.icon-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(151, 39, 90, 0.4);
}

/* Card with secondary accent */
.card.card-accent {
  border-top: 4px solid var(--color-secondary);
}

.card.card-accent:hover {
  border-top-color: var(--color-secondary-vibrant);
}

/* ======================
   RESPONSIVE IMPROVEMENTS
   ====================== */

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-xl);
  }
  
  .section {
    padding: var(--spacing-3xl) 0;
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-height-mobile) + var(--spacing-3xl)) 0 var(--spacing-3xl);
  }
  
  .hero__title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero__subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .section__title {
    font-size: 1.875rem;
  }
  
  .card {
    padding: var(--spacing-lg);
  }
  
  .btn {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-sm);
  }
  
  /* Stack navigation items */
  .nav__list {
    width: 100%;
  }
  
  .nav__link {
    display: block;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-gray);
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .hero__title {
    font-size: 1.75rem;
  }
  
  .section__title {
    font-size: 1.5rem;
  }
  
  .btn-large {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
  }
}

/* ======================
   PRINT STYLES
   ====================== */

@media print {
  .header,
  .whatsapp-float,
  .menu-toggle,
  .nav__cta,
  .footer__social {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: var(--spacing-xl) 0;
  }
  
  .section {
    page-break-inside: avoid;
  }
}
/* ======================
   HAMBURGER MENU ENHANCED
   ====================== */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: transform var(--transition-base);
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 3px;
  transition: all var(--transition-base);
  transform-origin: center;
}

/* Animated hamburger to X */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
  background-color: var(--color-secondary);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
  background-color: var(--color-secondary);
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* ======================
   MOBILE & TABLET RESPONSIVE
   ====================== */

@media (max-width: 768px) {
  /* Show hamburger menu */
  .menu-toggle {
    display: flex;
  }
  
  /* Navigation */
  .nav {
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-2xl);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav__list {
    flex-direction: column;
    padding: var(--spacing-2xl) var(--spacing-xl);
    gap: 0;
    align-items: stretch;
  }
  
  .nav__list li {
    width: 100%;
    border-bottom: 1px solid var(--color-light-gray);
  }
  
  .nav__list li:last-child {
    border-bottom: none;
  }
  
  .nav__link {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-md);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-darker-gray);
    transition: all var(--transition-base);
  }
  
  .nav__link:hover,
  .nav__link.active {
    background-color: var(--color-light-gray);
    color: var(--color-primary);
    padding-left: var(--spacing-xl);
  }
  
  .nav__link::before {
    content: '›';
    margin-right: var(--spacing-md);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    transition: transform var(--transition-base);
  }
  
  .nav__link:hover::before {
    transform: translateX(5px);
  }
  
  /* CTA button in mobile menu */
  .nav__cta {
    margin: var(--spacing-xl) 0 0 0;
    padding: 0 var(--spacing-md);
  }
  
  .nav__cta .btn {
    width: 100%;
    justify-content: center;
    padding: var(--spacing-lg);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-lg);
  }
  
  /* Language switcher in mobile */
  .lang-switcher {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    gap: var(--spacing-xs);
  }
  
  .lang-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    min-width: 35px;
  }
  
  /* Hero section mobile */
  .hero {
    min-height: 70vh;
    padding: calc(var(--header-height-mobile) + var(--spacing-2xl)) var(--spacing-md) var(--spacing-2xl);
  }
  
  .hero__content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero__title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
  }
  
  .hero__subtitle {
    font-size: 1rem;
    margin-bottom: var(--spacing-xl);
  }
  
  .hero__cta {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .hero__cta .btn {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: var(--font-size-base);
  }
  
  /* Services grid */
  .services__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* About section */
  .about__content {
    flex-direction: column;
    text-align: center;
  }
  
  /* Footer */
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    text-align: center;
  }
}

/* Tablet specific */
@media (min-width: 769px) and (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-light-gray) 100%);
    box-shadow: var(--shadow-2xl);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    overflow-y: auto;
  }
  
  .nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav__list {
    flex-direction: column;
    padding: var(--spacing-3xl) var(--spacing-2xl);
    gap: var(--spacing-sm);
    max-width: 600px;
    margin: 0 auto;
  }
  
  .nav__link {
    padding: var(--spacing-lg);
    font-size: var(--font-size-xl);
    border-radius: var(--radius-md);
    background-color: white;
    box-shadow: var(--shadow-sm);
  }
  
  .nav__link:hover {
    background-color: var(--color-light-gray);
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
  
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ======================
   IMPROVED HERO BUTTON VISIBILITY
   ====================== */

.hero__cta .btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero__cta .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.hero__cta .btn:hover::before {
  transform: translateX(0);
}

.hero__cta .btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: 2px solid white;
}

.hero__cta .btn-secondary-vibrant {
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Add text shadow for better readability on hero */
.hero__title,
.hero__subtitle {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Ensure buttons are always visible */
@media (max-width: 768px) {
  .hero__cta .btn {
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
  }
}

/* Button "Our Services" con color especial */
.hero__cta .btn-services {
  background: linear-gradient(135deg, #9d2a5c 0%, #7a2249 100%);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(157, 42, 92, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero__cta .btn-services::before {
  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 ease;
}

.hero__cta .btn-services:hover {
  background: linear-gradient(135deg, #b8316c 0%, #9d2a5c 100%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 25px rgba(157, 42, 92, 0.6);
  transform: translateY(-2px) scale(1.02);
}

.hero__cta .btn-services:hover::before {
  left: 100%;
}

.hero__cta .btn-services:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(157, 42, 92, 0.4);
}

/* Icon animation on hover */
.hero__cta .btn-services i {
  transition: transform 0.3s ease;
}

.hero__cta .btn-services:hover i {
  transform: scale(1.2) rotate(5deg);
}

/* Responsive adjustments for services button */
@media (max-width: 768px) {
  .hero__cta .btn-services {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
  }
}

/* ======================
   HERO SECTION WITH IMAGE
   ====================== */

.hero--with-image {
  position: relative;
  background-image: url('../images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Fallback: Gradient si no hay imagen */
.hero--with-image:not([style*="background-image"]) {
  background: linear-gradient(135deg, 
    var(--color-primary) 0%, 
    var(--color-primary-dark) 50%,
    var(--color-secondary) 100%
  );
  background-image: url('../images/hero-background.jpg'); 
  background-size: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(11, 126, 185, 0.85) 0%,
    rgba(6, 90, 138, 0.90) 50%,
    rgba(151, 39, 90, 0.85) 100%
  );
  z-index: 1;
}

/* Asegurar que el contenido esté encima del overlay */
.hero--with-image .container {
  position: relative;
  z-index: 2;
}

.hero--with-image .hero__content {
  position: relative;
  z-index: 2;
}

/* Mejorar legibilidad del texto sobre imagen */
.hero--with-image .hero__title {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
               0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero--with-image .hero__subtitle {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4),
               0 1px 3px rgba(0, 0, 0, 0.3);
}


/* ======================
   SERVICE CARDS WITH IMAGES
   ====================== */

.card--with-image {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card--with-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card__image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin: calc(var(--spacing-md) * -1);
  margin-bottom: var(--spacing-lg);
}

.card__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
  position: relative;
}

/* Overlay sutil con branding colors */
.card__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(11, 126, 185, 0.2) 0%,
    rgba(151, 39, 90, 0.3) 100%
  );
  transition: opacity 0.3s ease;
}

.card--with-image:hover .card__image {
  transform: scale(1.1);
  background-size: cover;
}

.card--with-image:hover .card__image::before {
  opacity: 0.5;
}

/* Imágenes específicas por servicio - Usando colores de placeholder */

.card__image--residential {
  background: linear-gradient(135deg, #0B7EB9 0%, #2E9FD0 100% );
  background-image: url('../images/services/residential.jpg'); 
 
}

.card__image--residential::after {
  content: '🏠';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  opacity: 0.3;
}

.card__image--commercial {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-vibrant) 100%
  );
  background-image: url('../images/services/commercial.jpg'); 
}

.card__image--commercial::after {
  content: '🏢';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  opacity: 0.3;
}

.card__image--concrete {
  background: linear-gradient(135deg, #065A8A 0%, #0B7EB9 100%  );
   background-image: url('../images/services/concrete.jpg'); 
}

.card__image--concrete::after {
  content: '🛣️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  opacity: 0.3;
}

.card__image--roof {
  background: linear-gradient(135deg,     #97275a 0%,     #C73866 100%  );
   background-image: url('../images/services/roof.jpg'); 
}

.card__image--roof::after {
  content: '🏘️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  opacity: 0.3;
}

.card__image--deck {
  background: linear-gradient(135deg, #0B7EB9 0%,  #065A8A 100%  );
   background-image: url('../images/services/deck.jpg') ;
}

.card__image--deck::after {
  content: '🪵';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  opacity: 0.3;
}

.card__image--window {
  background: linear-gradient(135deg,  var(--color-secondary-vibrant) 0%,  var(--color-secondary) 100%
  );
   background-image: url('../images/services/window.jpg'); 
}

.card__image--window::after {
  content: '🪟';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  opacity: 0.3;
}

/* Ajustar el ícono para que no choque con la imagen */
.card--with-image .card__icon {
  margin-top: 0;
}


/* ======================
   RESPONSIVE - IMÁGENES
   ====================== */

@media (max-width: 768px) {
  .card__image-wrapper {
    height: 160px;
  }
  
  /* Hero image en móvil */
  .hero--with-image {
    background-attachment: scroll; /* Mejor performance en móvil */
  }
  
  .hero__overlay {
    background: linear-gradient(
      135deg,
      rgba(11, 126, 185, 0.90) 0%,
      rgba(6, 90, 138, 0.92) 50%,
      rgba(151, 39, 90, 0.90) 100%
    );
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .card__image-wrapper {
    height: 180px;
  }
}

/* ======================
   CTA SECTION WITH BACKGROUND IMAGE
   ====================== */

.cta-section {
  background-image: url('./images/cta-background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Efecto parallax en desktop */
  position: relative;
  padding: 80px 20px;
}

/* Overlay para mejor legibilidad */
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Oscurecer fondo */
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
}

/* Responsive para móvil */
@media (max-width: 768px) {
  .cta-section {
    background-attachment: scroll; /* Mejor rendimiento en móvil */
    padding: 60px 15px;
  }
}



/* Text shadow for better readability */
.cta-section h2 {
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.cta-section p {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}


/* ======================
   MOBILE-FIRST OPTIMIZATIONS v1.3.0
   ====================== */

/* Base mobile styles (< 768px) */
@media (max-width: 768px) {
  
  /* Hero Section Mobile */
  .hero {
    min-height: 85vh;
    padding-top: calc(var(--header-height-mobile) + var(--spacing-2xl));
    background-attachment: scroll; /* Better mobile performance */
  }
  
  .hero__content {
    text-align: center;
  }
  
  .hero__title {
    font-size: var(--font-size-3xl);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
  }
  
  .hero__subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-2xl);
  }
  
  .hero__cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero__cta .btn {
    width: 100%;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: var(--font-size-lg);
  }
  
  /* Section Headers Mobile */
  .section__header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
  }
  
  .section__title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
  }
  
  .section__subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
  }
  
  .section__description {
    font-size: var(--font-size-base);
  }
  
  /* Services Grid Mobile */
  .grid {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-xl);
  }
  
  /* Cards Mobile */
  .card {
    padding: var(--spacing-xl);
  }
  
  .card__image-wrapper {
    height: 200px;
    margin-bottom: var(--spacing-lg);
  }
  
  .card__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
  }
  
  .card__description {
    font-size: var(--font-size-base);
    line-height: 1.6;
  }
  
  /* About Grid Mobile */
  .grid-cols-4 {
    grid-template-columns: 1fr !important;
  }
  
  /* Process Steps Mobile */
  .card[style*="text-align: center"] {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
  
  .card[style*="text-align: center"] > div:first-child {
    margin-bottom: var(--spacing-md);
  }
  
  /* CTA Section Mobile */
  .cta-section {
    background-attachment: scroll;
    min-height: auto;
    padding: var(--spacing-3xl) 0;
  }
  
  .cta-section h2 {
    font-size: var(--font-size-2xl) !important;
    margin-bottom: var(--spacing-lg) !important;
  }
  
  .cta-section p {
    font-size: var(--font-size-base) !important;
    margin-bottom: var(--spacing-xl) !important;
  }
  
  .cta-section .btn {
    width: 100%;
    margin-bottom: var(--spacing-md);
  }
  
  /* Contact Section Mobile */
  #contact .grid {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-2xl);
  }
  
  /* Forms Mobile */
  .form-group {
    margin-bottom: var(--spacing-lg);
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: var(--spacing-md);
  }
  
  /* Footer Mobile */
  .footer {
    text-align: center;
  }
  
  .footer__grid {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-2xl);
    text-align: center;
  }
  
  .footer__column {
    align-items: center;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  /* Buttons Mobile */
  .btn-large {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-base);
  }
  
  /* Modal Mobile */
  .modal__content {
    width: 95%;
    max-width: none;
    margin: var(--spacing-lg);
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal__header {
    padding: var(--spacing-lg);
  }
  
  .modal__body {
    padding: var(--spacing-lg);
  }
  
  /* WhatsApp Button Mobile - Already styled but ensuring visibility */
  .whatsapp-float {
    bottom: 80px; /* Higher to avoid nav bars */
    right: 15px;
  }
}


/* ======================
   TABLET OPTIMIZATIONS (769px - 1024px)
   ====================== */

@media (min-width: 769px) and (max-width: 1024px) {
  
  /* Hero Tablet */
  .hero {
    min-height: 70vh;
  }
  
  .hero__title {
    font-size: var(--font-size-4xl);
  }
  
  .hero__subtitle {
    font-size: var(--font-size-lg);
  }
  
  /* Grids Tablet */
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Cards Tablet */
  .card__image-wrapper {
    height: 220px;
  }
  
  /* CTA Section Tablet */
  .cta-section {
    min-height: 350px;
  }
  
  /* Footer Tablet */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


/* ======================
   LANDSCAPE MOBILE (480px - 768px in landscape)
   ====================== */

@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .cta-section {
    min-height: 100vh;
  }
}


/* ======================
   SMALL MOBILE (< 375px)
   ====================== */

@media (max-width: 375px) {
  .hero__title {
    font-size: var(--font-size-2xl);
  }
  
  .section__title {
    font-size: var(--font-size-xl);
  }
  
  .card {
    padding: var(--spacing-lg);
  }
  
  .card__image-wrapper {
    height: 180px;
  }
  
  .btn {
    font-size: var(--font-size-sm);
    padding: var(--spacing-md) var(--spacing-lg);
  }
}


/* ======================
   TOUCH OPTIMIZATIONS
   ====================== */

@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets for mobile */
  .btn,
  .nav__link,
  .menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  /* Better tap highlights */
  * {
    -webkit-tap-highlight-color: rgba(11, 126, 185, 0.2);
  }
}


/* ======================
   PERFORMANCE OPTIMIZATIONS
   ====================== */

/* Reduce animations on lower-end devices */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Optimize images for mobile */
@media (max-width: 768px) {
  .hero--with-image,
  .cta-section {
    background-attachment: scroll;
  }
}
/* Scroll suave pero performante */
html {
  scroll-behavior: smooth;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Background optimization */
@media (max-width: 768px) {
  .hero--with-image,
  .cta-section {
    background-attachment: scroll; /* No fixed en móvil */
  }
}

/* Prevenir zoom en inputs */
input, textarea, select {
  font-size: 16px;
}

/* Safe areas (notch) */
padding-top: env(safe-area-inset-top);
padding-bottom: env(safe-area-inset-bottom);

/* Tap highlight */
* {
  -webkit-tap-highlight-color: rgba(11, 126, 185, 0.2);
}

/* Touch targets mínimos */
.btn, .nav__link, .menu-toggle {
  min-height: 44px;
  min-width: 44px;
}

/* Remover hovers en touch */
@media (hover: none) {
  .card:hover { transform: none; }
}