/* =====================================================
   BASE STYLES
===================================================== */
:root {
  --primary-color: #1a73e8;
  --secondary-color: #34a853;
  --dark-color: #333333;
  --light-color: #f9f9f9;
  --text-color: #555555;
  --border-color: #e0e0e0;
  --transition: all 0.3s ease;
  --box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.08);
}

/* Barra de menú: header blanco */
body[data-page="contacto"] .header {
  background-color: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }

p { margin-bottom: 1rem; }

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--light-color);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.separator {
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 15px auto;
  position: relative;
  overflow: hidden;
}

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::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: 0.5s;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
  animation: btn-shine 1.5s;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   PRELOADER
===================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

/* =====================================================
   HEADER STYLES
===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo img {
  height: 75px;
  transition: transform 0.5s ease;
}

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

.main-nav .nav-list {
  display: flex;
  list-style: none;
}

.main-nav .nav-list li {
  margin-left: 30px;
}

.main-nav .nav-list a {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 8px 0;
}

.main-nav .nav-list a:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.main-nav .nav-list a:hover:before,
.main-nav .nav-list a.active:before {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* =====================================================
   HERO SECTION
===================================================== */

/* Estilos para el carrusel del hero */
.hero {
  position: relative;
  height: 450px;
  margin-top: 80px;
  overflow: hidden;
  color: #fff;
}

.hero-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease, transform 0.5s ease;
  transform: scale(1.05);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1s ease, transform 6s ease;
  animation: subtle-zoom 15s ease forwards;
}

@keyframes subtle-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 48, 93, 0.5), rgba(26, 115, 232, 0.4));
  z-index: 2;
}

.slide-caption {
  position: absolute;
  bottom: 50px;
  right: 50px;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
  z-index: 2;
}

.hero-slide.active .slide-caption {
  opacity: 1;
  transform: translateY(0);
}

.slide-caption h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 1px;
  color: #fff;
  font-weight: 500;
}

.slider-navigation {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 15px;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-nav {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 10px;
  outline: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.dot.active {
  background: #fff;
  transform: scale(1.3);
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  padding-top: 50px;
}

.hero-content h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: slideInLeft 1s ease forwards;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: slideInLeft 1s ease 0.3s forwards;
  opacity: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-content .btn {
  animation: slideInLeft 1s ease 0.6s forwards;
  opacity: 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .hero-content h1 {
      font-size: 2.2rem;
  }
  
  .hero-content p {
      font-size: 1rem;
  }
  
  .slide-caption {
      right: 20px;
      bottom: 100px;
  }
  
  .slider-navigation {
      bottom: 20px;
  }
}

@media screen and (max-width: 480px) {
  .hero {
      height: 500px;
  }
  
  .hero-content h1 {
      font-size: 1.8rem;
  }
  
  .slide-caption {
      right: 10px;
      bottom: 120px;
      padding: 5px 10px;
  }
  
  .slide-caption h2 {
      font-size: 14px;
  }
  
  .slider-nav {
      width: 30px;
      height: 30px;
  }
}

/* =====================================================
   WELCOME SECTION
===================================================== */
.welcome .content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.welcome .text-content {
  padding-right: 20px;
}

.values {
  margin-top: 30px;
}

.value-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.value-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--primary-color);
  transition: height 0.5s ease;
}

.value-item:hover::before {
  height: 100%;
}

.value-item:hover {
  transform: translateY(-5px) translateX(5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-item i {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 15px;
  transition: transform 0.5s ease;
}

.value-item:hover i {
  transform: scale(1.2) rotate(10deg);
}

/* =====================================================
   NEWS SECTION
===================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
}

.news-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.news-card:hover::after {
  transform: scaleX(1);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.8s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.1) rotate(2deg);
}

.date {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary-color);
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  text-align: center;
  line-height: 1.2;
  transition: 0.3s ease;
  z-index: 1;
}

.news-card:hover .date {
  background-color: var(--secondary-color);
  transform: translateY(-5px) rotate(-5deg);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.date span {
  display: block;
}

.date span:first-child {
  font-size: 18px;
  font-weight: 700;
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.news-card:hover .news-content h3 {
  color: var(--primary-color);
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* =====================================================
   RADIO SECTION
===================================================== */
/* === RADIO SECTION: borde degradado perfectamente uniforme y redondeado === */
.radio-player {
  display: block;
  width: 350px;
  max-width: 100%;
  margin: 20px auto;
  padding: 5px 5px 0;  /* 5px arriba/lados, 0 abajo */
  background:
    /* capa blanca interna */
    #fff padding-box,
    /* capa degradado para el "borde" */
    linear-gradient(
      45deg,
      var(--primary-color),
      var(--secondary-color),
      #2196f3,
      #00bcd4
    ) border-box;
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.radio .radio-player iframe {
  width: 100% !important;   /* Rellena el contenedor */
  height: 150px !important;  /* Altura unificada */
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ====== Secciones secundarias en una fila y más chicas ====== */
.radio.section-padding,
.browser-compatibility.section-padding {
  display: inline-block;
  vertical-align: top;
  width: 45%;
  min-height: 350px; /* fuerza la misma altura mínima en ambas tarjetas */
  box-sizing: border-box;
  padding: 20px; /* reduce un poco el tamaño interior */
  margin: 0 2%;   /* separa cada "tarjeta" -  0 vertical, 2% horizontal para separación */
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

.radio.section-padding:hover,
.browser-compatibility.section-padding:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.dashboard-box__share-toggle {
  pointer-events: none !important;
  cursor: default !important;
  opacity: 0.6; /* opcional, para que se vea deshabilitado visualmente */
}

/* === Lanza-radio (botón + ondas) === */
.radio-launcher {
  text-align: center;
  margin: 60px auto;
}

.radio-button-wrapper {
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: visible; /* las ondas pueden salirse sin empujar nada */
}

/* — Botón principal — */
.radio-button {
  position: relative;
  z-index: 2;      /* siempre por encima de las ondas */
  width: 100px;
  height: 100px;
  border: none;
  border-radius: 50%;
  background-image: url('../images/zlide.jpg');
  background-size: cover;
  background-position: center;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.radio-button:hover {
  transform: scale(1.05);
}

.radio-button.active {
  transform: scale(1.15);
  box-shadow:
    0 0 25px rgba(76, 175, 80, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* — Ondas en el wrapper, detrás del botón — */
.radio-button-wrapper::before,
.radio-button-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Onda principal (más grande e intensa) */
.radio-button-wrapper::before {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(76,175,80,0.9) 0%, transparent 70%);
  filter: blur(8px);
  animation: wavePrimary 2.5s ease-out infinite;
}

/* Onda secundaria (ligero retardo) */
.radio-button-wrapper::after {
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(33,150,243,0.8) 0%, transparent 70%);
  filter: blur(10px);
  animation: waveSecondary 3.2s ease-out infinite 0.5s;
}

/* — Animaciones de expansión y desvanecimiento — */
@keyframes wavePrimary {
  0% {
    width: 150px;
    height: 150px;
    opacity: 0.98;
  }
  100% {
    width: 450px;
    height: 450px;
    opacity: 0;
  }
}

@keyframes waveSecondary {
  0% {
    width: 170px;
    height: 170px;
    opacity: 0.94;
  }
  100% {
    width: 500px;
    height: 500px;
    opacity: 0;
  }
}

/* === Etiqueta bajo el botón === */
.radio-label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* =====================================================
   BROWSER COMPATIBILITY
===================================================== */
.browser-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
}

.browser-item {
  text-align: center;
  transition: var(--transition);
}

.browser-item i {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 8px;
  transition: all 0.5s ease;
}

.browser-item:hover i {
  transform: rotateY(180deg);
  color: var(--secondary-color);
}

.browser-item:hover {
  transform: translateY(-5px);
}

/* Ajustar espacio entre íconos de navegadores */
.browser-compatibility .browser-grid {
  gap: 20px !important;
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
  background-color: #222;
  color: #999;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 70px 0;
}

.footer-section h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.contact-info div {
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.contact-info div:hover {
  transform: translateX(5px);
}

.contact-info i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-section.links ul {
  list-style: none;
}

.footer-section.links li {
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.footer-section.links li:hover {
  transform: translateX(5px);
}

.footer-section.links a {
  color: #999;
  transition: var(--transition);
}

.footer-section.links a:hover {
  color: #fff;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transform: scale(0);
  transition: transform 0.3s ease;
  border-radius: 50%;
  z-index: -1;
}

.social-links a:hover::before {
  transform: scale(1);
}

.social-links a:hover {
  color: #fff;
  transform: translateY(-5px) rotate(360deg);
}

.footer-bottom {
  background-color: #1a1a1a;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
  display: flex;
  justify-content: center !important; /* Fuerza centrado */
  align-items: center;
}

.footer-bottom .copyright {
  text-align: center;
  width: 100%;
}

.footer-menu ul {
  display: flex;
  list-style: none;
}

.footer-menu li {
  margin-left: 20px;
}

.footer-menu a {
  color: #999;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: #fff;
}

/* =====================================================
   BACK TO TOP BUTTON
===================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.back-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.back-to-top:hover::before {
  opacity: 1;
}

.back-to-top i {
  position: relative;
  z-index: 1;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  animation: pulse 2s infinite;
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/* =====================================================
   PARALLAX EFFECT
===================================================== */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* =====================================================
   COUNTER SECTION
===================================================== */
.counter-section {
  background-image: url('../images/counter-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  padding: 100px 0;
}

.counter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 48, 93, 0.8), rgba(26, 115, 232, 0.8));
}

.counter-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.counter-item {
  text-align: center;
  padding: 20px;
}

.counter-icon {
  font-size: 40px;
  margin-bottom: 15px;
  color: #fff;
}

.counter-number {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

.counter-text {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =====================================================
   ANIMATION CLASSES
===================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.slide-up.appear {
  opacity: 1;
  transform: translateY(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s ease, transform 1s ease;
}

.slide-right.appear {
  opacity: 1;
  transform: translateX(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.slide-left.appear {
  opacity: 1;
  transform: translateX(0);
}

.scale-up {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1s ease, transform 1s ease;
}

.scale-up.appear {
  opacity: 1;
  transform: scale(1);
}

.rotate-in {
  opacity: 0;
  transform: rotate(-15deg) scale(0.8);
  transition: opacity 1s ease, transform 1s ease;
}

.rotate-in.appear {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* =====================================================
   KEYFRAMES ANIMATIONS
===================================================== */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

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

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes btn-shine {
  100% { left: 100%; }
}

@keyframes hero-shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

@keyframes glowing {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

@keyframes slideInLeft {
  0% {
      opacity: 0;
      transform: translateX(-50px);
  }
  100% {
      opacity: 1;
      transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
      opacity: 0;
      transform: translateX(50px);
  }
  100% {
      opacity: 1;
      transform: translateX(0);
  }
}

@keyframes fadeIn {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

/* =====================================================
   RESPONSIVE STYLES
===================================================== */
@media screen and (max-width: 992px) {
  .welcome .content-wrapper {
      grid-template-columns: 1fr;
      gap: 30px;
  }
  
  .welcome .text-content {
      padding-right: 0;
  }
  
  .hero-content h1 {
      font-size: 2.5rem;
  }
  
  .counter-container {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
      display: block;
  }
  
  .main-nav .nav-list {
      position: absolute;
      top: 80px;
      left: 0;
      width: 100%;
      background-color: #fff;
      flex-direction: column;
      padding: 20px 0;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
      transform: translateY(-150%);
      opacity: 0;
      visibility: hidden;
      transition: var(--transition);
  }
  
  .main-nav .nav-list.active {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
  }
  
  .main-nav .nav-list li {
      margin: 0;
      width: 100%;
      text-align: center;
  }
  
  .main-nav .nav-list a {
      display: block;
      padding: 12px 0;
  }
  
  .browser-grid {
      flex-direction: column;
      gap: 30px;
  }
  
  .footer-bottom .container {
      flex-direction: column;
      text-align: center;
  }
  
  .footer-menu {
      margin-top: 15px;
  }
  
  .footer-menu ul {
      justify-content: center;
  }
  
  .footer-menu li:first-child {
      margin-left: 0;
  }
}

@media screen and (max-width: 480px) {
  .section-padding {
      padding: 60px 0;
  }

  .radio.section-padding {
    padding: 30px 0;
  }
  
  .browser-compatibility.section-padding {
    padding: 30px 0;
  }

  .hero {
      height: 500px;
  }
  
  .hero-content h1 {
      font-size: 2rem;
  }
  
  h2 {
      font-size: 1.7rem;
  }
  
  .counter-container {
      grid-template-columns: 1fr;
  }
}
  /* ================================
     Estilos específicos para la página de servicios
     (Se recomienda encapsularlos usando body[data-page="servicios"] para evitar conflictos)
  =================================== */
  .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 30px;
      margin-top: 40px;
  }
  
  .service-item {
      background-color: #fff;
      border-radius: 8px;
      padding: 30px;
      box-shadow: var(--box-shadow);
      transition: var(--transition);
      display: flex;
      align-items: flex-start;
      position: relative;
      overflow: hidden;
  }
  
  .service-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 0;
      background-color: var(--primary-color);
      transition: height 0.5s ease;
  }
  
  .service-item:hover::before {
      height: 100%;
  }
  
  .service-item:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .service-icon {
      font-size: 36px;
      color: var(--primary-color);
      margin-right: 20px;
      transition: transform 0.5s ease;
  }
  
  .service-item:hover .service-icon {
      transform: scale(1.2) rotate(10deg);
  }
  
  .service-content h3 {
      margin-bottom: 10px;
      font-size: 20px;
  }
  
  .service-content p {
      margin-bottom: 0;
      color: var(--text-color);
  }
  
  .new-badge {
      display: inline-block;
      background-color: var(--secondary-color);
      color: white;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 12px;
      margin-left: 10px;
      animation: pulse 2s infinite;
  }
  
  .cta-section {
      background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(52, 168, 83, 0.1));
  }
  
  .cta-wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 30px;
  }
  
  .cta-content h2 {
      margin-bottom: 15px;
  }
  
  .cta-content p {
      margin-bottom: 0;
      font-size: 18px;
  }
  
  @media screen and (max-width: 768px) {
      .cta-wrapper {
          flex-direction: column;
          text-align: center;
      }
      
      .cta-button {
          margin-top: 20px;
      }
      
      .service-item {
          flex-direction: column;
          text-align: center;
      }
      
      .service-icon {
          margin-right: 0;
          margin-bottom: 15px;
      }
  }
/* =====================================================
   PAGINA INGENIERIA
===================================================== */
/* Banner (Hero) de Ingeniería similar al de Servicios */
.ingenieria-hero {
  position: relative;
  background: url('images/ingenieria.jpg') center center/cover no-repeat;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}
.ingenieria-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.ingenieria-hero .hero-content {
  position: relative;
  text-align: center;
  color: #f7f7f7;
  z-index: 2;
  animation: slideInDown 1s ease-out;
}
.ingenieria-hero .hero-content h1 {
  font-size: 3.2rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.ingenieria-hero .hero-content p {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 0;
}
@keyframes slideInDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Separador de sección */
.ingenieria-separator {
  width: 70px;
  height: 4px;
  background: #D97706;
  margin: 10px auto;
  border-radius: 2px;
}

/* Sección de Proyectos (contenido textual) */
.ingenieria-proyectos {
  padding: 60px 0;
  background-color: #fff;
}
.ingenieria-proyectos .section-header {
  text-align: center;
  margin-bottom: 40px;
}
.ingenieria-proyectos .section-header h2 {
  font-size: 2.4rem;
  color: #222;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ingenieria-proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.ingenieria-proyecto-item {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ingenieria-proyecto-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ingenieria-proyecto-item .ingenieria-icon {
  font-size: 2.5rem;
  color: #D97706;
  margin-bottom: 15px;
}
.ingenieria-proyecto-item p {
  font-size: 1rem;
  color: #444;
  margin: 0;
  line-height: 1.5;
}
/* Animación fade-in para cada ítem */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 0.8s forwards;
  opacity: 0;
}

/* == Override padding-top de “Novedades” SOLO en la página Home == */
body[data-page="index"] section.news.section-padding {
  padding-top: 0px !important; /* Cambia 20px por el valor que quieras */
}

/* Tarjeta para la imagen en sección de bienvenida */
.image-card {
  border: 10px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}
.image-card img {
  display: block;
  width: 100%;
  height: auto;
}


/* Estilos para Logo de WhatsApp
  ========================================================================== */

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;           /* espacio entre icono y texto */
    text-decoration: none;
  }
  .whatsapp-link .fa-whatsapp {
    font-size: 1.6rem;    /* ajustá a gusto: 1.6rem, 24px, etc. */
    color: #25D366;       /* opcional: color WhatsApp */
    line-height: 1;       /* evita saltos verticales raros */
  }