/* 
    ALIAGA & SOLÍS INGENIEROS - Design System
    Focus: Premium, Modern, Engineering, Trust
*/

:root {
  --primary: #004aad;
  --primary-light: #3a86ff;
  --secondary: #00b4d8;
  --accent: #ffb703;
  --dark: #0a192f;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-800: #343a40;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-dark: rgba(10, 25, 47, 0.8);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bg-light-trans: rgba(255, 255, 255, 0.2);
  --bg-dark-trans: rgba(0, 37, 102, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

html, body {
  scroll-behavior: smooth;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body {
  background-color: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

a {
  text-decoration: none !important;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1800px;
  /* Expanded by 50% from 1200px */
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  padding: 15px 0;
  transition: var(--transition);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body {
  padding-top: 80px;
  /* Offset for fixed header */
}

/* Standardized Page Header for non-home pages */
.page-header {
  background: var(--bg-dark-trans, rgba(0, 37, 102, 0.2)) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -1px;
}

.page-header p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

/* Subtle pattern for headers */
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  z-index: 1;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 0 40px;
}

.logo img {
  height: 81px;
  /* Increased by 35% from 60px */
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  display: none !important;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

/* --- Hero Section --- */
.hero {
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: transparent !important;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 74, 173, 0.4);
  backdrop-filter: saturate(1.2) contrast(1.1);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 60px 100px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: zoomIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero h1 {
  font-size: 6rem;
  color: var(--white);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -2px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Client Carousel --- */
.carousel-section {
  padding: 80px 0;
  background: var(--white);
  overflow: hidden;
}

.carousel-section p {
  text-align: center;
  margin-bottom: 50px;
  color: var(--gray-800);
  font-weight: 400;
  font-size: 1.1rem;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll 60s linear infinite;
  gap: 40px;
}

.slide {
  width: 220px;
  height: 140px;
  background: var(--white);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.slide img {
  width: 115%;
  /* Scale up slightly to crop white margins */
  height: 115%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.slide:hover img {
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- Who We Are --- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img img {
  border-radius: 30px;
  box-shadow: var(--shadow);
  width: 130%;
  /* Increased size by 30% */
  transform: translateX(-15%);
  /* Centering the larger image */
}

.about-content {
  background: #ffffff !important;
  padding: 40px 45px !important;
  border-radius: 24px !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 74, 173, 0.1) !important;
}

.about-content span {
  color: var(--primary, #004aad) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  display: block !important;
  margin-bottom: 12px !important;
}

.about-content h2 {
  font-size: 2.4rem !important;
  color: #0a192f !important;
  font-weight: 800 !important;
  margin-bottom: 22px !important;
}

.about-content p {
  margin-bottom: 18px !important;
  color: #334155 !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
}

/* --- Values --- */
.values-header {
  margin-bottom: 60px;
}

.values-header span {
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
}

.values-header h2 {
  font-size: 2.5rem;
}

/* --- Values (Staggered Layout) --- */
.values-header {
  margin-bottom: 60px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.values-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.values-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.values-col.centered {
  justify-content: center;
}

.value-card {
  background: #ffffff !important;
  padding: 38px 30px;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  border: 1px solid rgba(0, 74, 173, 0.1);
  border-top: 4px solid var(--primary, #004aad);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 240px;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #004aad, #00b4d8);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.value-card:hover::before {
  width: 100%;
}

.value-card:hover {
  transform: translateY(-12px) scale(1.02) !important;
  box-shadow: 0 22px 50px rgba(0, 74, 173, 0.22) !important;
  border-color: rgba(0, 74, 173, 0.25) !important;
}

.value-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #004aad 0%, #002566 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: 1.85rem;
  box-shadow: 0 8px 22px rgba(0, 74, 173, 0.28);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.value-card:hover .value-icon {
  transform: scale(1.18) rotate(8deg);
  background: linear-gradient(135deg, #004aad 0%, #00b4d8 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 74, 173, 0.45);
}

.value-card h3 {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.95rem;
  transition: color 0.4s ease;
}

/* --- Why Choose Us --- */
.why-us {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 40px;
  padding: 80px 40px;
  text-align: center;
}

.why-us h2 {
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 50px;
  letter-spacing: 2px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.why-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.why-card i {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
  color: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Scroll Animations disabled for SiteJet Builder compatibility */
.animate-in {
  opacity: 1;
  transform: none;
  transition: none;
}

.animate-in.visible {
  opacity: 1;
  transform: none;
}

.why-card h4 {
  color: var(--white);
  margin-bottom: 15px;
}

.why-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* --- Footer --- */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 25px;
}

.footer-col p {
  opacity: 0.7;
  margin-bottom: 15px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  opacity: 0.7;
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--secondary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--white);
  transition: var(--transition);
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
  border-color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.5;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Modal System --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--white);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  transform: translateY(50px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 30px 40px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.modal-header h2 {
  color: var(--white);
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--accent);
  color: var(--dark);
  transform: rotate(90deg);
}

.modal-content {
  padding: 40px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-content p {
  font-size: 1.1rem;
  color: var(--gray-800);
  margin-bottom: 25px;
  line-height: 1.8;
}

.modal-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.modal-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  background: var(--gray-100);
  border-radius: 12px;
  transition: var(--transition);
}

.modal-list-item:hover {
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transform: translateX(5px);
}

.modal-list-item i {
  color: var(--secondary);
  margin-top: 5px;
  font-size: 0.9rem;
}

.modal-list-item span {
  font-weight: 500;
  color: var(--primary);
}

.modal-footer {
  padding: 25px 40px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: center;
}

.btn-contact-modal {
  background: var(--secondary);
  color: var(--white);
  padding: 15px 50px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
}

.btn-contact-modal:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 74, 173, 0.2);
}

/* Scrollbar for modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--gray-100);
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--gray-800);
}

@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    border-radius: 15px;
  }

  .modal-header,
  .modal-content,
  .modal-footer {
    padding: 20px;
  }

  .modal-header h2 {
    font-size: 1.4rem;
  }
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .values-columns {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-content {
    padding: 40px 20px;
  }

  .nav-links {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Global Link Styles and Animations added for SiteJet */
a,
.nav-links a,
.social-links a,
.footer-col a {
  text-decoration: none !important;
  border-bottom: none !important;
}

.nav-links a::after {
  display: none !important;
}

@keyframes pulse-acceso {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 34, 64, 0.5);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(13, 34, 64, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(13, 34, 64, 0);
  }
}

.nav-links .nav-access a {
  display: inline-block;
  transition: all 0.3s ease !important;
  animation: pulse-acceso 2s infinite;
}

.nav-links .nav-access a:hover {
  transform: translateY(-3px) scale(1.05);
  background-color: var(--accent, #eab308) !important;
  color: #000 !important;
  animation: none;
  box-shadow: 0 8px 20px rgba(234, 179, 8, 0.4);
}

/* === ESTILOS Y ANIMACIONES INTERACTIVAS DE TARJETAS AL PASAR EL MOUSE (HOVER) === */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Transición suave e interactiva al pasar el mouse por cualquier tarjeta del sitio */
.value-card,
.value-card-premium,
.mv-card-premium,
.service-card,
.why-card,
.position-card,
.iso-card,
.cert-card,
.manager-card {
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.35s ease, background-color 0.35s ease !important;
  cursor: pointer;
}

.value-card:hover,
.value-card-premium:hover,
.mv-card-premium:hover,
.service-card:hover,
.why-card:hover,
.position-card:hover,
.iso-card:hover,
.cert-card:hover {
  transform: translateY(-8px) scale(1.015) !important;
  box-shadow: 0 20px 45px rgba(0, 74, 173, 0.18) !important;
}