/* ================================
   FUENTE Y ESTILO GLOBAL
=================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root{
  --azul-oscuro: #012a4a;
  --azul-medio: #01497c;
  --verde-acento: #2ca58d;
  --gris-fondo: #f1f5f9;
  --blanco: #ffffff;
  --texto: #333333;
}

*{box-sizing:border-box;}
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--gris-fondo);
    color: var(--texto);
    line-height: 1.6;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

/* ================================
   ENCABEZADO
=================================== */
header {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    flex-wrap: wrap;
    box-shadow: 0 3px 6px rgba(0,0,0,0.18);
    gap: 12px;
}

.logo {
    background-color: var(--blanco);
    padding: 8px 14px;
    border-radius: 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    transition: transform 0.18s ease, box-shadow 0.25s ease;
    min-width: 220px;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}

.logo-texto h1 {
    font-size: 1.15rem;
    margin: 0;
    font-weight: 700;
    color: var(--azul-oscuro);
    line-height: 1.12;
}

.logo-texto p {
    font-size: 0.78rem;
    margin: 0;
    color: var(--verde-acento);
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ================================
   MENÚ DE NAVEGACIÓN
=================================== */
nav {
    margin-left: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 26px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.22s ease, border-bottom 0.22s ease;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: var(--verde-acento);
    border-bottom: 2px solid var(--verde-acento);
}

/* ================================
   SECCIÓN HERO
=================================== */
.hero {
    background: linear-gradient(145deg, var(--azul-oscuro), var(--verde-acento));
    color: var(--blanco);
    text-align: center;
    padding: 100px 30px;
    position: relative;
}

.hero .logo-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background: var(--blanco);
    width: 140px;
    height: 140px;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
    margin: 0 auto 22px auto;
    transition: transform 0.18s ease, box-shadow 0.25s ease;
}

.hero .logo-btn:hover{
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.30);
}

.hero .logo-btn img{
    width: 80%;
    height: auto;
    display:block;
    border-radius: 10%;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.28));
}

.hero .hero-content {
    max-width: 980px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 1.95rem;
    font-weight: 600;
    margin: 8px 0 14px 0;
    color: rgba(224,247,250,0.98);
    line-height: 1.25;
}

.hero p {
    font-size: 1.02rem;
    max-width: 820px;
    margin: 0 auto 28px auto;
    color: rgba(255,255,255,0.95);
    text-align: center;
}

.btn-hero {
    background-color: var(--blanco);
    color: var(--azul-oscuro);
    padding: 12px 28px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.02rem;
    transition: all 0.26s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    display: inline-block;
}

.btn-hero:hover {
    background-color: var(--verde-acento);
    color: var(--blanco);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.30);
}

/* ================================
   SECCIONES GENERALES
=================================== */
.section {
    padding: 64px 20px;
    background-color: var(--blanco);
    text-align: center;
}

.section h2 {
    color: var(--azul-medio);
    font-size: 1.7rem;
    margin-bottom: 18px;
    position: relative;
}

.section h2::after {
    content: "";
    width: 56px;
    height: 3px;
    background-color: var(--verde-acento);
    display: block;
    margin: 10px auto 0;
    border-radius: 3px;
}

.section p {
    max-width: 940px;
    margin: 0 auto 18px auto;
    text-align: justify;
    color: #2b3b46;
    line-height: 1.65;
}

/* Misión - Visión */
.mision-vision {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 26px;
}

.mision-vision div {
    width: 100%;
    max-width: 420px;
    background: #f9fafb;
    padding: 22px;
    border-radius: 12px;
    border-top: 5px solid var(--verde-acento);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.mision-vision h3 {
    color: var(--azul-medio);
    margin-bottom: 8px;
}

/* ================================
   SERVICIOS (OPTIMIZADO + 3x2 + ANIMACIÓN)
=================================== */
.container {
    padding: 70px 20px;
    background-color: var(--blanco);
    text-align: center;
  }
  
  .container h2 {
    color: var(--azul-medio);
    font-size: 1.8rem;
    margin-bottom: 40px;
    position: relative;
  }
  
  .container h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: var(--verde-acento);
    display: block;
    margin: 10px auto 0;
    border-radius: 3px;
  }
  
  /* === Cuadrícula 3x2 === */
  .service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 2rem; /* Espaciado entre tarjetas */
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    align-items: stretch;
  }
  
  /* === Tarjetas === */
  .service-item {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease forwards;
  }
  
  .service-item:nth-child(1){animation-delay:0.1s;}
  .service-item:nth-child(2){animation-delay:0.2s;}
  .service-item:nth-child(3){animation-delay:0.3s;}
  .service-item:nth-child(4){animation-delay:0.4s;}
  .service-item:nth-child(5){animation-delay:0.5s;}
  .service-item:nth-child(6){animation-delay:0.6s;}
  
  @keyframes fadeUp {
    from {opacity:0; transform: translateY(40px);}
    to {opacity:1; transform: translateY(0);}
  }
  
  .service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  }
  
  /* === Imagen del servicio === */
  .service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
  }
  
  /* === Título y texto === */
  .service-item h3 {
    color: var(--azul-medio);
    font-size: 1.15rem;
    margin: 10px 0;
  }
  
  .service-item p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.55;
  }
  
  /* === Adaptabilidad (Responsive) === */
  @media (max-width: 992px) {
    .service-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    }
  }
  
  @media (max-width: 600px) {
    .service-grid {
      grid-template-columns: 1fr; /* 1 columna */
    }
  }

/* ================================
   CONTACTO Y PIE
=================================== */
/* === SECCIÓN DE CONTACTO === */
.section.contacto {
    background-color: #f9f9f9;
    padding: 50px 25px;
    border-radius: 16px;
    max-width: 800px;
    margin: 60px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
  }
  
  /* Título */
  .section.contacto h2 {
    font-size: 2rem;
    color: var(--color-secondary, #1e3a8a);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
  }
  
  /* Datos de contacto */
  .info-contacto {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .info-contacto p {
    font-size: 1rem;
    margin: 5px 0;
    color: #333;
  }
  
  .info-contacto a {
    color: var(--color-primary, #ffa500);
    text-decoration: none;
  }
  
  .info-contacto a:hover {
    text-decoration: underline;
  }
  
  /* Formulario */
  .form-contacto {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }
  
  .campo {
    margin-bottom: 20px;
  }
  
  .campo label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
  }
  
  .campo input,
  .campo textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }
  
  .campo input:focus,
  .campo textarea:focus {
    border-color: var(--color-primary, #ffa500);
    outline: none;
  }
  
  /* Botón */
  .btn-enviar {
    display: inline-block;
    background-color: var(--color-primary, #ffa500);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .btn-enviar:hover {
    background-color: #e69500;
    transform: scale(1.03);
  }
  
  /* Adaptabilidad (Responsive) */
  @media (max-width: 600px) {
    .section.contacto {
      padding: 35px 15px;
    }
  
    .form-contacto {
      padding: 20px;
    }
  
    .section.contacto h2 {
      font-size: 1.6rem;
    }
  }
  
/* ================================
   PIE DE PÁGINA (FOOTER)
================================ */
footer {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    padding: 40px 20px 25px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  }
  
  .footer-contenido {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 25px;
  }
  
  .footer-enlaces, 
  .footer-redes {
    flex: 1 1 250px;
    min-width: 220px;
  }
  
  .footer-enlaces h4,
  .footer-redes h4 {
    color: var(--verde-acento);
    font-size: 1.05rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .footer-enlaces ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-enlaces li {
    margin-bottom: 8px;
  }
  
  .footer-enlaces a {
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-enlaces a:hover {
    color: var(--verde-acento);
  }
  
  .iconos-redes a {
    margin: 0 10px;
    color: var(--blanco);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.25s ease;
  }
  
  .iconos-redes a:hover {
    color: var(--verde-acento);
    transform: scale(1.15);
  }
  
  .footer-copy {
    text-align: center;
    font-size: 0.9rem;
    color: #e2e8f0;
  }
  
  .footer-copy .frase {
    margin-top: 6px;
    font-style: italic;
    color: #cbd5e1;
  }
  
  /* === Animación de aparición suave === */
  footer {
    animation: aparecerFooter 1s ease forwards;
    opacity: 0;
  }
  
  @keyframes aparecerFooter {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* === Responsive === */
  @media (max-width: 768px) {
    .footer-contenido {
      flex-direction: column;
      align-items: center;
      gap: 30px;
    }
  
    .footer-enlaces h4, 
    .footer-redes h4 {
      font-size: 1rem;
    }
  
    .iconos-redes a {
      font-size: 1.3rem;
    }
  }
  

