/* ==========================================================================
   TIMEXWORLD GROUP - Component Styles (Header, Hero, Units, Footer)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Top Contact & Info Bar
   -------------------------------------------------------------------------- */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-contact-item i {
  color: var(--accent-cyan);
}

.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-socials a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.top-bar-socials a:hover {
  color: var(--accent-cyan);
}

@media (max-width: 768px) {
  .top-bar { display: none; }
}

/* --------------------------------------------------------------------------
   Header & Main Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  min-height: 85px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 60px;
  max-height: 68px;
  width: auto;
  object-fit: contain;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-navy);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  transition: var(--transition-fast);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-dark);
  cursor: pointer;
}

@media (max-width: 992px) {
  .mobile-menu-btn { display: block; }
  .main-nav {
    position: fixed;
    top: 85px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.4s ease-in-out;
  }
  .main-nav.open {
    clip-path: circle(140% at 100% 0);
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Hero Banner Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #021226 0%, #062447 50%, #004e6b 100%);
  color: var(--text-white);
  padding: 3.5rem 0;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(0, 180, 216, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(255, 183, 3, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan-light);
  margin-bottom: 1.5rem;
}

.hero-title {
  color: #fff;
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title span {
  background: linear-gradient(135deg, #00c2ff 0%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 580px;
}

/* Value Props Grid inside Hero */
.hero-value-props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .hero-value-props { grid-template-columns: repeat(2, 1fr); }
}

.prop-card {
  text-align: center;
}

.prop-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem auto;
  border-radius: var(--radius-full);
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.3);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.prop-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.3;
}

.prop-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Hero Section Imagen Grande Completa */
.hero-image-container {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100%;
  width: 100%;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 180, 216, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image-wrapper:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.6), 0 0 45px rgba(0, 180, 216, 0.45);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

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

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 25, 55, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Carrusel / Galería de Logos de Unidades de Negocio
   -------------------------------------------------------------------------- */
.logos-carousel-section {
  padding: 2.5rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.logos-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.logo-card-item {
  flex: 1 1 150px;
  max-width: 210px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.logo-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 78, 107, 0.15);
  border-color: var(--accent-cyan);
}

.logo-card-item img {
  max-height: 70px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 992px) {
  .logos-carousel-wrapper {
    flex-wrap: nowrap;
    justify-content: flex-start;
    animation: logosMarquee 20s linear infinite;
    width: max-content;
  }
  
  .logo-card-item {
    flex: 0 0 170px;
  }
  
  @keyframes logosMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}

/* --------------------------------------------------------------------------
   Sección de Servicios Principales con Íconos Circulares
   -------------------------------------------------------------------------- */
.featured-services-section {
  background: #e2e8f0;
  padding: 4rem 0;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

.featured-service-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
}

.circle-icon-box {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--primary-blue);
  background: #ffffff;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 78, 107, 0.08);
  transition: var(--transition-smooth);
}

.featured-service-card:hover .circle-icon-box {
  background: var(--primary-blue);
  color: #ffffff;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 78, 107, 0.25);
}

.featured-service-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-service-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.btn-service-dark {
  background: var(--primary-blue);
  color: #ffffff;
  padding: 0.65rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-block;
}

.btn-service-dark:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 25, 55, 0.25);
}

/* --------------------------------------------------------------------------
   Business Units Showcase Section (2 COLUMNAS POR FILA EN DESKTOP)
   -------------------------------------------------------------------------- */
.units-section {
  background: var(--bg-surface);
  position: relative;
}

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

@media (max-width: 992px) {
  .units-grid-2col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* La 5ta tarjeta se ajusta elegantemente centrada en pantallas anchas */
.units-grid-2col .unit-card-large:nth-child(5) {
  grid-column: 1 / -1;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.unit-card-large {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.unit-card-large:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 78, 107, 0.15);
  border-color: var(--accent-cyan);
}

.unit-card-img-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
  overflow: hidden;
  background: #0f172a;
}

.unit-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.unit-card-large:hover .unit-card-img-wrapper img {
  transform: scale(1.06);
}

.unit-card-badge-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(5, 25, 55, 0.85);
  color: var(--accent-cyan-light);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.unit-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.unit-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.unit-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(0, 78, 107, 0.1);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.unit-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.25;
}

.unit-card-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.unit-card-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.unit-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-blue);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

.unit-card-btn:hover {
  color: var(--accent-cyan);
}

.unit-card-btn i {
  transition: transform 0.2s ease;
}

.unit-card-btn:hover i {
  transform: translateX(6px);
}

/* --------------------------------------------------------------------------
   Footer Section
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--primary-dark);
  color: var(--text-white);
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-title {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

.footer-badges-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-badge-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.footer-badge-item i {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
