@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&family=Montserrat+Alternates:wght@700;800&display=swap');

:root {
  --primary: #2F516C;
  --primary-light: #A6C3CB;
  --gray: #B5B5B5;
  --dark-gray: #5E605C;
  --black: #000000;
  --white: #FFFFFF;
  --bg-light: #EAEDF0;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-gray);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.header.scrolled {
  background: var(--white);
  backdrop-filter: none;
  padding: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 60px;
  width: auto;
  filter: none;
  transition: var(--transition);
}

.header.scrolled .logo img {
  height: 50px;
}

.hamburger {
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==================== NAVIGATION PANEL ==================== */
.nav-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 30px rgba(0,0,0,0.2);
  z-index: 1001;
  transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.nav-panel.open { right: 0; }

.nav-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid var(--bg-light);
}

.nav-panel-header img {
  height: 40px;
}

.nav-close {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}

.nav-close:hover {
  background: var(--primary);
  color: var(--white);
}

.nav-links {
  padding: 20px 30px;
  flex: 1;
}

.nav-links a {
  display: block;
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark-gray);
  border-bottom: 1px solid var(--bg-light);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  padding-left: 8px;
}

.nav-links a.active {
  font-weight: 700;
}

.nav-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--bg-light);
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(47, 81, 108, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 0 24px;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 em {
  font-style: italic;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-dark:hover {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

/* ==================== SECTION COMMON ==================== */
.section {
  padding: 90px 0;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--dark-gray);
  max-width: 600px;
  line-height: 1.8;
  text-align: justify;
}

/* ==================== ABOUT (Home) ==================== */
.about {
  background: var(--white);
}

.about {
  padding: 70px 0;
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1050px;
}

.about-text .section-title {
  font-style: italic;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

.about-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.1);
  transform-origin: center 25%;
}

/* ==================== SERVICES (Home) ==================== */
.services {
  position: relative;
  background: var(--primary);
  overflow: hidden;
}

.services .section-title {
  color: var(--white);
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform var(--transition);
}

.service-card:hover { transform: translateY(-5px); }

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-bg { transform: scale(1.05); }

.service-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.service-card-content {
  position: relative;
  z-index: 2;
  padding: 30px;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-card .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
  border-color: var(--white);
  color: var(--white);
}

.service-card .btn:hover {
  background: var(--white);
  color: var(--primary);
}

/* ==================== COMPANY TEASER (Home) ==================== */
.company-teaser {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.company-teaser .hero-bg {
  background-size: cover;
  background-position: center;
}

@media (min-width: 1400px) {
  .company-teaser {
    min-height: 600px;
  }
  .company-teaser .hero-bg {
    background-size: 100% auto;
    background-position: center center;
  }
}

.company-teaser .hero-bg::after {
  background: rgba(0, 0, 0, 0.55);
}

.company-teaser .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.company-teaser-content {
  max-width: 550px;
  color: var(--white);
}

.company-teaser-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.company-teaser-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: justify;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
  position: relative;
  overflow: hidden;
  background: var(--primary);
}

.testimonials .hero-bg::after {
  background: rgba(47, 81, 108, 0.8);
}

.testimonials .container {
  position: relative;
  z-index: 2;
}

.testimonials .section-title {
  color: var(--white);
  margin-bottom: 50px;
  max-width: 400px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(5px);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.1);
}

.testimonial-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
  text-align: justify;
}

.testimonial-card .author {
  font-weight: 700;
  font-style: normal;
  color: var(--white);
  font-size: 0.9rem;
}

/* ==================== STATS ==================== */
.stats {
  position: relative;
  overflow: hidden;
}

.stats-bg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 350px;
}

.stats-bg-left,
.stats-bg-right {
  background-size: cover;
  background-position: center;
  position: relative;
}

.stats-bg-left::after,
.stats-bg-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(47, 81, 108, 0.75);
}

.stats-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.stats-overlay h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 40px;
}

.stats-row {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-item .stat-label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.3;
}

.stat-item .stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  white-space: nowrap;
}

.stat-item .stat-icon {
  width: clamp(50px, 8vw, 70px);
  height: clamp(50px, 8vw, 70px);
  margin-top: 4px;
  opacity: 0.95;
}

/* ==================== CLIENTS ==================== */
.clients {
  padding: 50px 0 40px;
  background: var(--bg-light);
}

.clients .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}

.clients-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 36px;
  text-align: center;
}

.clients-group {
  width: 100%;
  margin-bottom: 32px;
  text-align: center;
}

.clients-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.clients-group img {
  max-width: 100%;
  height: auto;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-light);
  padding: 0;
}

.footer-social {
  background: var(--white);
  border-radius: 30px;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  transform: translateY(-40px);
}

.footer-social .slogan {
  font-style: italic;
  color: var(--dark-gray);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-social h3 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 16px;
}

.social-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--dark-gray);
  font-size: 0.85rem;
}

.social-icons a svg {
  width: 36px;
  height: 36px;
  fill: var(--black);
  transition: var(--transition);
}

.social-icons a:hover svg { fill: var(--primary); }

.footer-address {
  font-size: 0.85rem;
  color: var(--dark-gray);
  margin-top: 16px;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px 30px;
  margin-top: -20px;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--dark-gray);
  line-height: 1.8;
}

.footer-legal strong {
  font-weight: 700;
  color: var(--black);
}

.footer-bni {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--dark-gray);
}

.footer-bni img {
  height: 40px;
  width: auto;
}

.footer-logo {
  text-align: right;
}

.footer-logo img {
  height: 70px;
  width: auto;
}

/* ==================== PAGE HERO (Inner Pages) ==================== */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 84px;
  padding-bottom: 30px;
}

.page-hero .hero-bg::after {
  background: rgba(47, 81, 108, 0.6);
}

.page-hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}

.page-hero .logo img {
  filter: brightness(0) invert(1);
}

.page-hero h1 {
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
}

.page-hero--centered {
  align-items: center;
  min-height: 350px;
}

.page-hero--centered .container {
  justify-content: center;
}

.page-hero--centered h1 {
  text-align: center;
}

/* ==================== EMPRESA PAGE ==================== */
.empresa-intro {
  background: var(--white);
}

.empresa-intro .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.empresa-intro-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.2;
}

.empresa-intro-text .lead {
  font-weight: 600;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.empresa-intro-text p {
  margin-bottom: 16px;
  text-align: justify;
  line-height: 1.8;
}

.empresa-intro-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.empresa-intro-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top center;
}

/* Historia */
.historia {
  position: relative;
  min-height: 750px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 0;
}

.historia .hero-bg {
  background-position: 65% 20%;
}

.historia .hero-bg::after {
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.03) 30%, rgba(0,0,0,0.25) 65%, rgba(0,0,0,0.5) 100%);
}

.historia .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding-bottom: 0;
}

.historia-content {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  border-radius: 30px 30px 0 0;
  padding: 45px 50px 40px 50px;
  text-align: center;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.1);
  max-width: 600px;
}

.historia-content h2 {
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.historia-content p {
  color: var(--dark-gray);
  line-height: 1.8;
  margin-bottom: 12px;
}


/* Misión y Valores */
.mision-valores {
  position: relative;
  overflow: visible;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.mision-valores .hero-bg::after {
  background: rgba(0, 0, 0, 0.6);
}

.mision-valores .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
}

.mv-card {
  text-align: center;
  color: var(--white);
}

.mv-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.mv-circle {
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(255,255,255,0.2);
}

.mv-circle p {
  color: var(--dark-gray);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.6;
}

.mv-circle strong {
  color: var(--black);
}

/* Valores Icons */
.valores-section {
  background: var(--bg-light);
}

.valores-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.valores-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.valor-icon {
  width: 120px;
  height: 120px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  padding: 12px;
}

.valor-icon:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.valor-icon img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  margin-bottom: 4px;
}

.valor-icon span {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark-gray);
  line-height: 1.2;
}

.valores-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.valores-text p {
  line-height: 1.8;
  text-align: justify;
}

.valores-text strong {
  color: var(--black);
}

/* Diferenciadores */
.diferencia {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}

.diferencia .hero-bg::after {
  background: rgba(47, 81, 108, 0.75);
}

.diferencia--solid {
  background: var(--primary);
}

.diferencia--solid .diferencia-card {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

.diferencia .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.diferencia h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  font-style: italic;
  color: var(--white);
  margin-bottom: 50px;
}

.diferencia-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.diferencia-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  transition: transform 0.4s ease, background 0.4s ease;
}

.diferencia-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.2);
}

.diferencia-card svg {
  width: 48px;
  height: 48px;
  fill: var(--white);
  margin-bottom: 18px;
  opacity: 0.9;
}

.diferencia-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
}

/* Equipo */
.equipo-banner {
  background: var(--primary);
  text-align: center;
  padding: 24px;
}

.equipo-banner h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  font-style: italic;
}

.equipo {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.equipo .hero-bg::after {
  background: rgba(47, 81, 108, 0.78);
}

.equipo .container {
  position: relative;
  z-index: 2;
}

.equipo-header {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 50px;
}

.equipo-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.equipo-header p {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  max-width: 400px;
  line-height: 1.6;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.equipo-member {
  text-align: center;
}

.equipo-member-img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 4px solid rgba(255,255,255,0.35);
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
  transition: var(--transition);
}

.equipo-member:hover .equipo-member-img {
  border-color: rgba(255,255,255,0.6);
  transform: scale(1.05);
}

.equipo-member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.25);
  transform-origin: center 25%;
}

.equipo-member-img--vittorio img {
  object-position: center 15%;
  transform: scale(1.3);
  transform-origin: center 20%;
}

.equipo-member-img--nicola img {
  object-position: center 10%;
  transform: scale(1.2);
  transform-origin: center 20%;
}

.equipo-member-img--laura img {
  object-position: center 15%;
  transform: scale(1.25);
  transform-origin: center 20%;
}

.equipo-member h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.equipo-member span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* Closing statement */
.closing-statement {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.closing-statement .hero-bg::after {
  background: rgba(47, 81, 108, 0.8);
}

.closing-statement .container {
  position: relative;
  z-index: 2;
}

.closing-statement p {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.closing-statement strong {
  font-weight: 800;
}

/* ==================== SERVICE PAGES ==================== */
.service-page-intro {
  background: var(--white);
  text-align: center;
}

.service-page-intro .lead {
  max-width: 750px;
  margin: 0 auto 16px;
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
}

.service-page-intro .highlight {
  font-weight: 700;
  color: var(--primary);
}

.how-section {
  background: var(--bg-light);
  text-align: center;
}

.how-image {
  max-width: 650px;
  margin: 0 auto;
}

.how-image img {
  width: 100%;
  height: auto;
}

/* SE Services - Enhanced alternating rows */
.se-services-section {
  display: flex;
  flex-direction: column;
}

.se-services-header {
  background: var(--primary);
  text-align: center;
  padding: 50px 24px 40px;
}

.se-services-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  font-style: italic;
  letter-spacing: 1px;
}

.se-services-divider {
  width: 60px;
  height: 3px;
  background: rgba(255,255,255,0.5);
  margin: 18px auto 0;
  border-radius: 2px;
}

.se-row {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 260px;
  display: flex;
  align-items: center;
}

.se-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(47, 81, 108, 0.72);
  transition: background 0.4s ease;
}

.se-row:hover::after {
  background: rgba(47, 81, 108, 0.6);
}

.se-row-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 50px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 35px 30px;
}

.se-row--left .se-row-inner { flex-direction: row; }
.se-row--right .se-row-inner { flex-direction: row-reverse; }

.se-row-circle {
  flex-shrink: 0;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 35px rgba(0,0,0,0.35), 0 0 0 4px rgba(255,255,255,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.se-row:hover .se-row-circle {
  transform: scale(1.06);
  box-shadow: 0 12px 45px rgba(0,0,0,0.4), 0 0 0 5px rgba(255,255,255,0.35);
}

.se-row-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.se-row:hover .se-row-circle img {
  transform: scale(1.08);
}

.se-row-text {
  flex: 1;
  color: var(--white);
}

.se-row--left .se-row-text { text-align: right; }
.se-row--right .se-row-text { text-align: left; }

.se-row-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.se-row-text p {
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0.92;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* SE closing landscape */
.se-closing-landscape {
  width: 100%;
  line-height: 0;
}

.se-closing-landscape img {
  width: 100%;
  height: auto;
  display: block;
}

/* Legacy service items (other pages) */
.service-items {
  background: var(--white);
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
}

.service-item:nth-child(even) {
  direction: rtl;
}

.service-item:nth-child(even) > * {
  direction: ltr;
}

.service-item-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.service-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-item-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-item-text p {
  line-height: 1.8;
  text-align: justify;
}

.service-closing {
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 250px;
  display: flex;
  align-items: center;
}

.service-closing .hero-bg::after {
  background: rgba(47, 81, 108, 0.85);
}

.service-closing .container {
  position: relative;
  z-index: 2;
}

.service-closing p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--white);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ==================== MANTENIMIENTOS PAGE ==================== */
/* Mantenimiento Bloque 1 */
.mant-bloque1 {
  background: var(--bg-light);
  padding: 70px 0;
}

.mant-bloque1 .container {
  max-width: 1000px;
}

.mant-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.mant-card {
  padding: 0;
}

.mant-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 20px;
}

.mant-card ul li {
  position: relative;
  padding: 5px 0;
  font-size: 0.93rem;
  line-height: 1.6;
}

.mant-card--beneficios p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--dark-gray);
}

.mant-how-circle {
  background: var(--white);
  border-radius: 50%;
  width: 420px;
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  margin: 0 auto;
  box-shadow: 0 4px 40px rgba(0,0,0,0.08);
  text-align: center;
}

.mant-how-circle h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.mant-how-circle ul {
  text-align: center;
}

.mant-how-circle ul li {
  padding: 4px 0;
  font-size: 0.85rem;
  line-height: 1.5;
  list-style: none;
}

.mant-how-circle ul li::before {
  content: '• ';
  color: var(--primary);
  font-weight: 700;
}

/* Mantenimiento services reuses .sg-row styles */
.mant-services {
  display: flex;
  flex-direction: column;
}

/* Mantenimiento Closing Hero */
.mant-closing-hero {
  position: relative;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
  text-align: center;
}

.mant-closing-hero .hero-bg::after {
  background: rgba(0, 0, 0, 0.55);
}

.mant-closing-hero .container {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
}

.mant-closing-hero h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.4;
}

.mant-closing-hero p {
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* ==================== CONTACT PAGE ==================== */
.contact-section {
  background: var(--white);
}

.contact-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

.contact-info-item {
  margin-bottom: 18px;
}

.contact-info-item h4 {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 0.93rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

.contact-info-item a:hover {
  color: var(--primary);
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.contact-map iframe {
  width: 100%;
  height: 250px;
  border: none;
}

.contact-form-wrap {
  background: var(--bg-light);
  border-radius: 30px;
  padding: 50px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-form-wrap h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--gray);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 81, 108, 0.1);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
}

.form-submit {
  padding: 14px 50px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background: var(--dark-gray);
}

/* ==================== ALCANCE / ALIADOS ==================== */
/* SG Intro Section */
.sg-intro {
  background: var(--bg-light);
  padding: 70px 24px;
}

.sg-intro-inner {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.sg-intro-card {
  background: var(--white);
  border-radius: 60px;
  padding: 40px 50px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
  text-align: center;
  max-width: 700px;
}

.sg-intro-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dark-gray);
}

.sg-intro-card strong {
  color: var(--primary);
  font-weight: 700;
}

.sg-intro-circle {
  background: var(--white);
  border-radius: 50%;
  width: 380px;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
  box-shadow: 0 6px 40px rgba(0,0,0,0.07);
  text-align: center;
}

.sg-intro-circle h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.sg-intro-circle ul {
  text-align: center;
}

.sg-intro-circle ul li {
  padding: 3px 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--dark-gray);
  list-style: none;
}

.sg-intro-circle ul li::before {
  content: '• ';
  color: var(--primary);
  font-weight: 700;
}

/* SG Services (Servicios Generales) - legacy */
.sg-services {
  display: flex;
  flex-direction: column;
}

.sg-row {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 240px;
  display: flex;
  align-items: center;
}

.sg-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(47, 81, 108, 0.7);
}

.sg-row-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 24px;
}

.sg-row--left .sg-row-inner {
  flex-direction: row;
}

.sg-row--right .sg-row-inner {
  flex-direction: row-reverse;
}

.sg-row-circle {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.sg-row-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-row-text {
  flex: 1;
  color: var(--white);
}

.sg-row--left .sg-row-text {
  text-align: left;
}

.sg-row--right .sg-row-text {
  text-align: right;
}

.sg-row-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 10px;
}

.sg-row-text p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
}

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

.alcance-aliados .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.alcance-card,
.aliados-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.alcance-card h3,
.aliados-card h3 {
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  text-align: center;
  font-style: italic;
}

.alcance-card p,
.aliados-card p {
  font-size: 0.93rem;
  line-height: 1.7;
  text-align: justify;
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .about .container,
  .empresa-intro .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .mision-valores .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .valores-section .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .equipo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .contact-section .container {
    grid-template-columns: 1fr;
  }

  .stats-row {
    gap: 40px;
  }

  .stat-item .stat-number {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  
  .services-grid {
    grid-template-columns: 1fr;
  }

  .mant-top-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mant-how-circle {
    width: 300px;
    height: 300px;
    padding: 40px;
  }

  .mant-how-circle h3 {
    font-size: 1.1rem;
  }

  .mant-how-circle ul li {
    font-size: 0.78rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-bg {
    grid-template-columns: 1fr;
  }
  
  .stats-row {
    flex-direction: column;
    gap: 30px;
  }
  
  .service-item {
    grid-template-columns: 1fr;
  }
  
  .service-item:nth-child(even) {
    direction: ltr;
  }
  
  .company-teaser .container {
    justify-content: center;
  }
  
  .company-teaser-content {
    text-align: center;
  }
  
  .diferencia-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .equipo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .mv-circle {
    width: 290px;
    height: 290px;
    padding: 40px;
  }

  .mv-circle p {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .historia-content {
    max-width: 100%;
  }
  
  .mant-top-row {
    grid-template-columns: 1fr;
  }
  
  .sg-row-inner {
    flex-direction: column !important;
    text-align: center;
    gap: 20px;
  }

  .sg-row--left .sg-row-text,
  .sg-row--right .sg-row-text {
    text-align: center;
  }

  .sg-row-circle {
    width: 160px;
    height: 160px;
  }

  .se-row-inner {
    flex-direction: column !important;
    text-align: center;
    gap: 24px;
  }

  .se-row--left .se-row-text,
  .se-row--right .se-row-text {
    text-align: center;
  }

  .se-row-circle {
    width: 160px;
    height: 160px;
  }

  .sg-intro-circle {
    width: 300px;
    height: 300px;
    padding: 40px;
  }

  .sg-intro-circle h3 {
    font-size: 0.95rem;
  }

  .sg-intro-circle ul li {
    font-size: 0.7rem;
  }

  .sg-intro-card {
    padding: 30px 35px;
    border-radius: 40px;
  }

  .alcance-aliados .container {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    margin-top: -10px;
  }
  
  .footer-logo {
    text-align: center;
  }
  
  .social-icons {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
  
  .equipo-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .equipo-member-img {
    width: 120px;
    height: 120px;
  }
  
  .historia-content {
    padding: 35px 25px 30px;
    max-width: 100%;
  }
  
  .contact-form-wrap {
    padding: 30px 20px;
  }
}
