/* ============================================================
   VARIABLES Y RESET
   Paleta (máximo 3 colores):
   - Carbón:  #1F2937
   - Ámbar:   #D97706
   - Claro:   #F9FAFB
============================================================ */
:root {
  --dark: #1F2937;
  --accent: #086d05;
  --light: #F9FAFB;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(31, 41, 55, 0.10);
  --shadow-hover: 0 14px 34px rgba(31, 41, 55, 0.18);
  --radius: 14px;
  --transition: all 0.35s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Plus Jakarta San', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   BOTONES (CTA)
============================================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--dark); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); transform: translateY(-3px); }
.btn-sm { padding: 10px 24px; font-size: 0.85rem; }

/* ============================================================
   HEADER / NAVBAR (sticky)
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(31, 41, 55, 0.92);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.navbar.scrolled {
  background: var(--dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
}
.nav-logo i { color: var(--accent); font-size: 1.7rem; }
.nav-logo small {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light);
  opacity: 0.8;
}
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
  color: var(--light);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 50px;
  padding: 9px 20px;
}
.nav-cta:hover { background: var(--white); color: var(--dark) !important; }

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   INICIO (HERO - CARRUSEL)
============================================================ */
.hero { position: relative; height: 100vh; min-height: 600px; }
.hero-slider { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(31,41,55,0.75), rgba(31,41,55,0.65));
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 0 20px;
  animation: heroFadeUp 1s ease both;
}
.hero-slide.active .hero-content { animation: heroFadeUp 1s ease both; }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(35px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 20px;
  line-height: 1.25;
}
.hero-phrase {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  margin-bottom: 34px;
  color: var(--light);
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Flechas del carrusel */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}
.hero-arrow:hover { background: var(--accent); }
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }

/* Indicadores */
.hero-dots {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dots button.active { background: var(--accent); transform: scale(1.3); }

/* ============================================================
   SECCIONES GENERALES
============================================================ */
.section { padding: 100px 0; }
.section-gray { background: var(--light); }
.section-dark { background: var(--dark); color: var(--light); }
.section-dark .section-title, .section-dark .section-subtitle { color: var(--light); }

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 18px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 4px;
  border-radius: 4px;
  background: var(--accent);
}
.section-subtitle {
  text-align: center;
  color: var(--dark);
  opacity: 0.7;
  margin-bottom: 55px;
  font-size: 1.05rem;
}

/* ============================================================
   CARDS (base unificada)
============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

/* ============================================================
   SOBRE NOSOTROS
============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
  align-items: stretch;
}
.about-card { padding: 40px; display: flex; flex-direction: column; gap: 18px; min-height: 100%; }
.about-card h3 { font-size: 1.35rem; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.about-card h3 i { color: var(--accent); }
.about-card .btn { align-self: flex-start; margin-top: auto; }
.about-img { padding: 0; }
.about-img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; transition: transform 0.6s ease; }
.about-img:hover img { transform: scale(1.06); }

.objective-card {
  padding: 40px;
  border-left: 6px solid var(--accent);
}
.objective-card h3 { font-size: 1.35rem; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.objective-card h3 i { color: var(--accent); }

/* ============================================================
   MISIÓN Y VISIÓN
============================================================ */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: stretch;
}
.mv-card {
  padding: 50px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  height: 100%;
}
.mv-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--transition);
}
.mv-card:hover .mv-icon { transform: scale(1.1) rotate(6deg); background: var(--dark); }
.mv-card h3 { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.mv-card p { color: var(--dark); opacity: 0.85; }

/* ============================================================
   VALORES
============================================================ */
/* ============================================================
   VALORES
============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}
.value-card {
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  height: 100%;
}
.value-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  border: 2px solid var(--accent);
  transition: var(--transition);
}
.value-card:hover .value-icon {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.1);
}
.value-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  min-height: 58px;
  display: flex;
  align-items: center;
}
.value-card p {
  font-size: 0.95rem;
  opacity: 0.85;
}

.value-card:hover .value-icon { background: var(--accent); color: var(--white); transform: scale(1.1); }
.value-card h3 { font-size: 1.2rem; font-weight: 700; min-height: 58px; display: flex; align-items: center; }
.value-card p { font-size: 0.95rem; opacity: 0.85; }

/* ============================================================
   SERVICIOS
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-img {
  height: 210px;              /* MISMO tamaño de imagen en todas las cards */
  overflow: hidden;
  flex-shrink: 0;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-img img { transform: scale(1.1); }
.service-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;               /* Garantiza misma altura aunque haya más texto */
}
.service-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  min-height: 60px;
}
.service-body p { font-size: 0.9rem; opacity: 0.85; flex-grow: 1; }
.service-link {
  margin-top: auto;           /* Botón siempre alineado abajo */
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.service-link:hover { gap: 14px; color: var(--dark); }

/* ============================================================
   POR QUÉ ELEGIRNOS
============================================================ */
.why-section .section-title::after { background: var(--accent); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 20px;
}
.why-text p { font-size: 1.05rem; margin-bottom: 30px; opacity: 0.92; }
.why-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.why-img img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.why-img:hover img { transform: scale(1.06); }

/* ============================================================
   NOTICIAS
============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-img {
  height: 210px;              /* MISMO tamaño de imagen en todas las cards */
  overflow: hidden;
  flex-shrink: 0;
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.news-card:hover .news-img img { transform: scale(1.1); }
.news-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.news-tag {
  align-self: flex-start;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.news-body h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; min-height: 60px; }
.news-body p { font-size: 0.9rem; opacity: 0.85; flex-grow: 1; }
.news-body .btn { margin-top: auto; align-self: flex-start; }

/* ============================================================
   CONTACTO
============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}
.contact-info { padding: 45px 40px; display: flex; flex-direction: column; gap: 30px; }
.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--accent);
  align-self: flex-start;
}
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--light);
  color: var(--accent);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: var(--transition);
}
.contact-item:hover .contact-icon { background: var(--accent); color: var(--white); }
.contact-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.contact-item a {
  display: block;
  color: var(--dark);
  font-weight: 600;
  transition: var(--transition);
}
.contact-item a:hover { color: var(--accent); }
.contact-item p { font-size: 0.92rem; opacity: 0.85; }

.contact-map { padding: 0; min-height: 450px; }
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  display: block;
}

/* ============================================================
   FOOTER
============================================================ */
.footer { background: var(--dark); color: var(--light); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-logo { margin-bottom: 18px; }
.footer-col p { font-size: 0.9rem; opacity: 0.75; }
.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--accent);
  border-radius: 3px;
}
.footer-col ul li { margin-bottom: 12px; font-size: 0.9rem; }
.footer-col ul li a { opacity: 0.75; transition: var(--transition); }
.footer-col ul li a:hover { opacity: 1; color: var(--accent); padding-left: 6px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; opacity: 0.85; }
.footer-contact i { color: var(--accent); margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(249,250,251,0.12);
  text-align: center;
  padding: 22px 20px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ============================================================
   BOTÓN VOLVER ARRIBA
============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  z-index: 900;
  box-shadow: var(--shadow-hover);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--dark); }

/* ============================================================
   ANIMACIONES DE APARICIÓN (SCROLL REVEAL)
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE DESIGN
============================================================ */

/* Laptops pequeñas / tablets horizontales */
@media (max-width: 1024px) {
  .services-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-link { font-size: 0.8rem; padding: 8px 8px; }
}

/* Tablets */
@media (max-width: 860px) {
  /* Menú hamburguesa */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 24px 0;
    transform: translateY(-130%);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-link { font-size: 1rem; padding: 12px 20px; width: 100%; text-align: center; }
  .nav-cta { width: auto; margin-top: 10px; }

  .section { padding: 70px 0; }
  .about-grid, .mv-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-img img { min-height: 260px; }
  .why-img img { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Móviles */
@media (max-width: 600px) {
  .services-grid, .news-grid, .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 550px; }
  .hero-arrow { width: 40px; height: 40px; }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }
  .hero-buttons .btn { width: 100%; }
  .about-card, .contact-info, .mv-card, .objective-card { padding: 30px 24px; }
  .service-body h3, .news-body h3, .value-card h3 { min-height: auto; }
  .back-to-top { bottom: 18px; right: 18px; width: 44px; height: 44px; }
}









.nav-logo{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    text-decoration:none;

    background:#fff;
    padding:3px 14px; /* Antes 8px 16px */
    border-radius:12px;

    box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.nav-logo img{
    display:block;
    height:48px; /* Antes 60px */
    width:auto;
    max-width:220px;
    object-fit:contain;
}

@media (max-width:768px){
    .nav-logo{
        padding:2px 10px;
    }

    .nav-logo img{
        height:40px;
    }
}

@media (max-width:480px){
    .nav-logo{
        padding:2px 8px;
    }

    .nav-logo img{
        height:34px;
    }
}