/* ===================== VARIABLES ===================== */
:root {
  --color-primary: #1a3c63;
  --color-primary-dark: #0f2740;
  --color-bg: #ffffff;
  --color-text: #2b2b2b;
  --color-text-light: #6b6b6b;
  --color-border: #e6e6e6;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --max-width: 1180px;
  --header-height: 130px;
}

/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

.section-title {
  font-size: 2.2rem;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-primary-dark);
}

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 120px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.nav-list {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: calc(480px + var(--header-height));
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 10, 10, 0.55), rgba(20, 10, 10, 0.75));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================== NOSOTROS ===================== */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.nosotros-text p {
  margin-bottom: 18px;
  color: var(--color-text);
}

.nosotros-media > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.nosotros-media {
  display: grid;
  gap: 18px;
}

/* ===================== SERVICIOS ===================== */
.servicios {
  background: #f5f8fa;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
}

.servicio-card {
  grid-column: span 2;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 30px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.servicio-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #eaf1f5;
  font-size: 1.35rem;
}

.servicio-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.servicio-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.servicio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 60, 99, 0.09);
}

.servicio-card h3 {
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.servicio-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===================== IDENTIDAD ===================== */
.identidad {
  background: #f5f7f8;
}

.identidad-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.identidad .section-title {
  text-align: left;
  margin-bottom: 22px;
}

.mision-block p {
  color: var(--color-text-light);
}

.mision-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 24px;
}

.valores-list {
  display: grid;
  gap: 18px;
}

.valores-list li {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.valores-list strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.valor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  font-size: 1rem;
}

.valores-list span {
  color: var(--color-text-light);
}

/* ===================== CONTACTO ===================== */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.contacto-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.whatsapp-icon {
  color: #25d366;
}

.mapa-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.mapa-wrap iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: 0;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: #1c1414;
  color: #f1f1f1;
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  height: 150px;
  margin-bottom: 12px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.footer-col ul li {
  margin-bottom: 10px;
  color: #cfcfcf;
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--color-primary);
}

/* ===================== DEV FOOTER ===================== */
.dev-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #120d0d;
  color: #8f8f8f;
  font-size: 0.8rem;
  padding: 14px 16px;
  text-align: center;
  width: 100%;
  overflow-wrap: anywhere;
}

.dev-footer-sep {
  color: #4a4a4a;
}

.dev-footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dev-footer-logo {
  height: 18px;
  width: auto;
}

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nosotros-grid,
  .contacto-grid,
  .identidad-grid {
    grid-template-columns: 1fr;
  }

  .servicios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .servicio-card,
  .servicio-card:nth-child(4),
  .servicio-card:nth-child(5) {
    grid-column: auto;
  }

  .servicio-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 14px);
    justify-self: center;
  }

  .identidad-grid {
    gap: 42px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .navbar.active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 40px;
  }

  .nav-link {
    font-size: 1.3rem;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col:first-child {
    display: flex;
    justify-content: center;
  }

  .footer-logo {
    display: block;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 12px;
  }

  .contacto-info {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .contacto-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
  }

  .footer-col,
  .footer-col ul,
  .footer-col ul li {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .dev-footer {
    flex-direction: column;
    gap: 8px;
  }

  .dev-footer-sep {
    display: none;
  }

  .dev-footer-credit {
    justify-content: center;
  }

  .valores-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .valores-list strong {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .servicio-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    bottom: 18px;
    right: 18px;
  }
}
