/* --- CONFIGURACIÓN GENERAL Y RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  background-color: #1E1E1E;
  color: #B8B8B8;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  width: 100%;
}

.full-width-wrapper {
  width: 100%;
}

.section-title {
  text-align: center;
  color: #0599DF;
  margin-bottom: 0.5rem;
  font-family: Georgia, "Lora", serif;
  font-size: 28px;
  font-weight: bold;
  line-height: 1.2;
}

.section-subtitle {
  text-align: center;
  color: #B8B8B8;
  margin-bottom: 1.5rem;
  font-size: 16px;
  font-family: Arial, sans-serif;
  line-height: 1.4;
}

.snap-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.snap-section.show {
  opacity: 1;
  transform: translateY(0);
}


/* --- HEADER Y NAVEGACIÓN --- */
header {
  background-color: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(5px);
  padding: 0.5rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  box-sizing: border-box;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2A2A2A;
}

.header-logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}

.header-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #E29A33;
  font-size: 24px;
  cursor: pointer;
}

nav a {
  color: #E29A33;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 15px;
  margin-left: 1.5rem;
  transition: color 0.2s;
}

nav a:hover {
  color: #0599DF;
  text-decoration: underline;
}


/* --- SECCIÓN 1: HERO (OPTIMIZADO PARA LOGO PANORÁMICO GRANDE) --- */
.hero-section {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Fija la altura total a la vista de la pantalla */
  padding-top: 85px; /* Altura del header fijo */
  padding-bottom: 1rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
  background-image: url("imagenes/fondo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden; /* Garantiza que no aparezca barra de scroll vertical */
}

.hero-content {
  width: 100%;
  max-width: 1350px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Agrupa arriba el logo y abajo los textos */
  align-items: center;
}

/* CONTENEDOR DEL LOGO GRANDE */
.hero-logo-wrapper {
  width: 100%;
  flex: 1; /* Ocupa todo el espacio sobrante superior */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
}

/* LOGO PANORÁMICO GIGANTE */
.company-logo {
  width: 100%;
  max-width: 1100px; /* Ancho máximo amplio para pantallas grandes */
  max-height: 42vh;   /* Alto masivo aprovechando que el archivo ya no tiene espacio sobrante */
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-text-container.horizontal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  width: 100%;
  margin-top: 1rem;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem;
}

.hero-text-container h3 {
  font-family: Georgia, "Lora", serif;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3;
  color: #0599DF;
}

.hero-text-container p {
  font-family: Georgia, "Lora", serif;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3;
  color: #0599DF;
}

/* --- ANIMACIÓN SPLIT TEXT --- */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  white-space: nowrap;
}

.split-char {
  display: inline-block;
  transform: translateY(110%) rotate(8deg);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease;
  will-change: transform, opacity;
}

.hero-text-container.visible .split-char {
  transform: translateY(0%) rotate(0deg);
  opacity: 1;
}


/* --- SECCIÓN 2: PROYECTOS (CARRUSEL SOLO IMÁGENES) --- */
#proyectos {
  scroll-margin-top: 70px;
  position: relative;
}

.full-screen-section {
  padding: 0 !important;
  width: 100vw;
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#proyectos .section-title {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  margin-bottom: 0;
  background: rgba(30, 30, 30, 0.8);
  padding: 6px 20px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

/* Reseteo básico de márgenes */
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Contenedor principal del carrusel */
.carousel-container {
  width: 100vw;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #121212;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Diapositiva centrada para una sola imagen */
.carousel-slide {
  min-width: 100vw;
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem 2rem 2rem; /* Espaciado para evitar que choque con el título o bordes */
}

.carousel-slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease-in-out forwards;
}

/* Imagen limpia sin recortes */
.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* BOTONES DE NAVEGACIÓN */
.carousel-btn {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  transition: all 0.3s ease;
  z-index: 20;
}

.carousel-btn:hover {
  background: #0599DF;
  border-color: #0599DF;
  transform: translateY(-50%) scale(1.1);
}

.btn-prev { left: 25px; }
.btn-next { right: 25px; }

/* Columna de Imagen */
.slide-image-col {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.slide-image-col img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Conserva la proporción 2000x1414 sin recortes */
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Columna de Texto */
.slide-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 1.5rem;
  background: rgba(42, 42, 42, 0.6);
  border: 1px solid #333;
  border-left: 4px solid #0599DF; /* Detalle de color representativo */
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.slide-text-col h3 {
  font-family: Georgia, "Lora", serif;
  font-size: 28px;
  font-weight: bold;
  color: #E29A33;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.slide-text-col p {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #B8B8B8;
  line-height: 1.6;
}

.caption {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  padding: 0 1rem;
}

.caption h2 {
  font-family: Georgia, "Lora", serif;
  font-size: 50px;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.caption p {
  font-size: 18px;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  user-select: none;
  transition: background 0.3s;
  z-index: 5;
}

.prev:hover, .next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev { left: 20px; }
.next { right: 20px; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* --- SECCIÓN 3: MARCAS --- */
#marcas {
  min-height: auto;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  width: 100%;
  max-width: 1100px;
  margin-top: 0.5rem;
}

.brand-item {
  background: #2A2A2A;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #333;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.brand-item:hover {
  transform: translateY(-4px);
  border-color: #E29A33;
}

.brand-item img {
  max-width: 100%;
  max-height: 65px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.brand-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}


/* --- SECCIÓN 4: SERVICIOS --- */
#servicios {
  min-height: auto;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas para escritorio */
  gap: 1.2rem;
  width: 100%;
  max-width: 1100px;
  justify-content: center;
}

/* Centrado para los 2 servicios nuevos en escritorio (Fila 2) */
.service-card.centered-card:nth-child(5) {
  grid-column: 2;
}

.service-card.centered-card:nth-child(6) {
  grid-column: 3;
}

.service-card {
  position: relative;
  background: #2A2A2A;
  padding: 2rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #333;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}

.service-card h3 {
  font-family: Georgia, "Lora", serif;
  font-size: 19px;
  font-weight: bold;
  color: #E29A33;
  margin-bottom: 0.2rem;
}

.service-hidden-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

/* MARCO E IMAGEN DENTRO DE LAS TARJETAS DE SERVICIO */
.service-card.active .service-hidden-content,
.service-card:hover .service-hidden-content {
  max-height: 280px;
  opacity: 1;
  margin-top: 0.8rem;
}

.service-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 120px;
  margin: 0.6rem auto 1rem auto;
  padding: 4px;
  background: #1E1E1E;
  border: 1px solid #E29A33;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 
              0 0 8px rgba(226, 154, 51, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  filter: brightness(0.9);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.service-card:hover .service-img-wrapper,
.service-card.active .service-img-wrapper {
  border-color: #0599DF;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8), 
              0 0 12px rgba(5, 153, 223, 0.4);
}

.service-card:hover .service-img,
.service-card.active .service-img {
  transform: scale(1.05);
  filter: brightness(1);
}

.service-btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: transparent;
  color: #E29A33;
  border: 2px solid #E29A33;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-btn:hover {
  background-color: #E29A33;
  color: #1E1E1E;
  transform: translateY(-2px);
}


/* --- SECCIÓN 5: INFORMACIÓN DE CONTACTO --- */
#info-contacto {
  min-height: auto;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

.info-card {
  position: relative;
  background: #2A2A2A;
  border-radius: 12px;
  border: 1px solid #333;
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-standalone {
  padding: 2.2rem 1.8rem 1.8rem 1.8rem;
  margin-top: 1.5rem;
}

.envelope-card {
  padding: 0;
  margin-top: 1.5rem;
  perspective: 1000px;
  overflow: visible;
}

.top-icon-badge {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2A2A2A;
  border: 2px solid #333;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.card-content-body {
  text-align: center;
  width: 100%;
}

.card-content-body h3,
.envelope-card h3 {
  font-family: Georgia, "Lora", serif;
  font-size: 20px;
  font-weight: bold;
  color: #E29A33;
  margin-bottom: 0.5rem;
}

.reveal-text {
  color: #B8B8B8;
  font-size: 16px;
  opacity: 1;
  transform: translateY(0);
  min-height: 24px;
}

.phone-icon {
  font-size: 1.5rem;
  display: inline-block;
  transform-origin: bottom center;
  transition: transform 0.3s ease;
}

.clock-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.clock-svg {
  width: 1.8rem;
  height: 1.8rem;
  color: #E29A33;
  transition: color 0.3s ease;
}

.hand {
  transform-origin: 12px 12px;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: #353535;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  transform-origin: top center;
  transition: transform 0.5s ease-in-out, background-color 0.3s ease;
  z-index: 3;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.envelope-body {
  position: relative;
  z-index: 2;
  padding: 1.8rem 1.2rem;
  text-align: center;
  width: 100%;
  transition: transform 0.4s ease-out;
}

.info-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

/* Efectos Globales al hacer clic (.active) */
.info-card.active .reveal-text {
  opacity: 1;
  transform: translateY(0);
}

.service-card.active .click-badge,
.info-card.active .click-badge {
  opacity: 0;
  transform: translateY(-5px);
}


/* --- SEÑALIZACIÓN "HAZ CLIC" --- */
.click-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  font-weight: bold;
  color: #E29A33;
  background: rgba(226, 154, 51, 0.1);
  border: 1px solid rgba(226, 154, 51, 0.3);
  padding: 3px 8px;
  border-radius: 12px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 10;
  display: none; /* <-- CAMBIAR A 'none' POR DEFECTO PARA ESCRITORIO */
}


/* --- ADAPTACIÓN RESPONSIVA (PANTALLAS PEQUEÑAS Y CELULARES) --- */
@media (max-width: 992px) {
  .carousel-slide {
    grid-template-columns: 1fr; /* Pasa a 1 columna (imagen arriba, texto abajo) */
    grid-template-rows: 1fr auto;
    padding: 4.5rem 3.5rem 2rem 3.5rem;
    gap: 1rem;
  }

  .slide-text-col {
    text-align: center;
    border-left: 1px solid #333;
    border-top: 4px solid #0599DF;
  }

  .slide-text-col h3 {
    font-size: 22px;
    margin-bottom: 0.5rem;
  }

  .slide-text-col p {
    font-size: 14px;
  }
}

  .service-card:hover {
    transform: translateY(-4px);
    border-color: #E29A33;
  }

  .info-card:hover {
    border-color: #0599DF;
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
  }

  .card-standalone:hover .top-icon-badge {
    border-color: #0599DF;
    background-color: #1E1E1E;
    box-shadow: 0 4px 12px rgba(5, 153, 223, 0.3);
  }

  .info-card:hover .reveal-text {
    opacity: 1;
    transform: translateY(0);
  }

  .phone-card:hover .phone-icon {
    animation: unhookPhone 0.6s ease forwards;
  }

  .clock-card:hover .clock-svg {
    color: #0599DF;
  }

  .clock-card:hover .minute-hand {
    animation: spinClock 1.2s linear infinite;
  }

  .clock-card:hover .hour-hand {
    animation: spinClock 4.8s linear infinite;
  }

  .envelope-card:hover .envelope-flap {
    transform: rotateX(180deg);
    background-color: #0599DF;
    z-index: 1;
  }

  .envelope-card:hover .envelope-body {
    transform: translateY(-5px);
  }

  .envelope-card:hover .info-icon {
    transform: scale(1.15);
  }


@keyframes unhookPhone {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  30% { transform: translateY(-8px) rotate(-25deg) scale(1.15); }
  60% { transform: translateY(-4px) rotate(-15deg) scale(1.15); }
  100% { transform: translateY(-6px) rotate(-20deg) scale(1.2); }
}

@keyframes spinClock {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* --- REGLAS PARA TABLETS Y MÓVILES --- */
@media (max-width: 992px) {
  .hero-text-container.horizontal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- REGLAS PARA TABLETS Y MÓVILES --- */
@media (max-width: 768px) {
  
  /* Hacer visible el badge solo en móviles */
  .click-badge {
    display: block !important;
  }

  .company-logo {
    max-width: 85%;
  }

  .hero-text-container h3 {
    font-size: 18px;
  }

  .hero-text-container p {
    font-size: 13px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1E1E1E;
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid #2A2A2A;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 0.8rem 0;
    text-align: center;
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  /* Mantener grid de 2 columnas original en celulares para servicios */
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem;
  }

  /* Desactivar el centrado de columnas en celular para fluir normal de 2 en 2 */
  .service-card.centered-card:nth-child(5),
  .service-card.centered-card:nth-child(6) {
    grid-column: auto !important;
  }

  .info-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .brand-item {
    padding: 0.6rem;
  }

  .service-card {
    padding: 1.2rem 0.6rem 1rem 0.6rem;
  }

  .service-card h3,
  .card-content-body h3,
  .envelope-card h3 {
    font-size: 15px;
    margin-bottom: 0.4rem;
  }

  .reveal-text,
  .envelope-card p {
    font-size: 13px;
  }

  .big-envelope-card {
    margin-top: 55px;
    padding: 25px 20px 20px 20px;
  }

  .social-icon-btn {
    width: 56px;
    height: 56px;
  }
}


/* --- SECCIÓN 6: FORMULARIO COMO CARTA --- */
.legadcy-section {
  background-color: #1E1E1E;
  color: #B8B8B8;
  padding: 40px 20px;
}

.letter-perspective-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

.big-envelope-card {
  position: relative;
  background-color: #2A2A2A;
  border-radius: 12px;
  border: 2px solid #333;
  padding: 35px;
  width: 100%;
  margin-top: 75px; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.big-envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #353535;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  transform-origin: top center;
  transform: rotateX(180deg);
  transition: transform 0.6s ease-in-out, background-color 0.4s ease;
  z-index: 10;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  pointer-events: none;
}

.big-envelope-card::before {
  content: '';
  position: absolute;
  top: -45px;
  left: 0;
  width: 100%;
  height: 45px;
  background-color: #1A1A1A;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  z-index: 1;
  pointer-events: none;
}

.letter-inner-form {
  position: relative;
  z-index: 5;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.big-envelope-card.closing .big-envelope-flap {
  transform: rotateX(0deg);
  background-color: #0599DF;
}

.big-envelope-card.closing .letter-inner-form {
  opacity: 0;
  transform: scale(0.95);
}

.big-envelope-card.flying {
  animation: flyBigLetter 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes flyBigLetter {
  0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
  30% { transform: translateY(-20px) scale(1.05) rotate(-5deg); opacity: 1; }
  60% { transform: translateY(-100px) scale(0.7) rotate(10deg); opacity: 0.8; }
  100% { transform: translate(600px, -600px) scale(0.1) rotate(35deg); opacity: 0; }
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: Arial, "Inter", sans-serif;
  font-size: 13px;
  color: #E29A33;
  margin-bottom: 6px;
  font-weight: bold;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  font-family: Arial, "Inter", sans-serif;
  font-size: 16px;
  padding: 12px;
  border: 1px solid #333333;
  border-radius: 6px;
  background-color: #1E1E1E;
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0599DF;
}

.btn-submit {
  font-family: Arial, "Inter", sans-serif;
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  background-color: #0599DF;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 100%;
}

.btn-submit:hover {
  background-color: #047bb3;
}


/* --- REDES SOCIALES --- */
.social-bar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  width: 100%;
}

.social-icon-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  background-color: #2A2A2A;
  color: #E29A33;
  border: 1px solid #333333;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.social-icon-btn:hover {
  background-color: #0599DF;
  color: #FFFFFF;
  border-color: #0599DF;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(5, 153, 223, 0.4);
}

.social-icon-btn svg {
  fill: currentColor;
}


/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #1E1E1E;
  color: #B8B8B8;
  font-size: 13px;
  width: 100%;
}


/* --- ANIMACIONES EN MÓVIL AL MANTENER (.active) --- */
.info-card.active {
  border-color: #0599DF;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card-standalone.active .top-icon-badge {
  border-color: #0599DF;
  background-color: #1E1E1E;
  box-shadow: 0 4px 12px rgba(5, 153, 223, 0.3);
}

.phone-card.active .phone-icon {
  animation: unhookPhone 0.6s ease forwards;
}

.clock-card.active .clock-svg {
  color: #0599DF;
}

.clock-card.active .minute-hand {
  animation: spinClock 1.2s linear infinite;
}

.clock-card.active .hour-hand {
  animation: spinClock 4.8s linear infinite;
}

.envelope-card.active .envelope-flap {
  transform: rotateX(180deg);
  background-color: #0599DF;
  z-index: 1;
}

.envelope-card.active .envelope-body {
  transform: translateY(-5px);
}

.envelope-card.active .info-icon {
  transform: scale(1.15);
}


/* Contenedor del texto intermedio */
.vertical-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
}

.vertical-text-container h2 {
  font-family: Georgia, "Lora", serif;
  font-size: 35px; /* Ligeramente más compacto para equilibrio visual */
  font-weight: bold;
  color: #E29A33;
  line-height: 1.3;
}

.vertical-text-container p {
  color: #f3f3f3;
  font-size: 25px;
  line-height: 1.3;
}

.vertical-text-container.visible .split-char {
  transform: translateY(0%) rotate(0deg);
  opacity: 1;
}

/* Cursor interactivo para las imágenes del carrusel */
.carousel-slide img {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-slide img:hover {
  transform: scale(1.02);
}

/* --- MODAL DE IMAGEN A PANTALLA COMPLETA --- */
.image-modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 1000; /* Por encima del header fijo */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.image-modal.show .modal-content {
  transform: scale(1);
}

/* Botón de cerrar (X) */
.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #FFFFFF;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.close-modal:hover {
  color: #E29A33;
  transform: scale(1.15);
}

/* BOTONES DE NAVEGACIÓN EN EL MODAL (MÁS GRANDES) */
.modal-nav-btn {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 65px;               /* Más grandes */
  height: 65px;              /* Más grandes */
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 32px;           /* Flechas más visibles */
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  transition: all 0.3s ease;
  z-index: 1001;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.modal-nav-btn:hover {
  background: #0599DF;
  border-color: #0599DF;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 20px rgba(5, 153, 223, 0.5);
}

.modal-prev { left: 30px; }
.modal-next { right: 30px; }

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
  .modal-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  .modal-prev { left: 15px; }
  .modal-next { right: 15px; }
}

/* --- ENLACES EN TARJETAS DE CONTACTO --- */
.info-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  text-decoration: underline;
}

/* --- ENLACES DIRECTOS EN TEXTO DE CONTACTO --- */
.contact-text-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
  cursor: pointer;
  text-decoration: underline;
}

.contact-text-link:hover {
  color: #0599DF; /* Se ilumina con el azul característico */
  text-decoration: underline;
}