/* ====================================
   1. Reset & Variables
   ==================================== */
:root {
    /* Colores */
    --primary-color: #001a35; /* Azul vibrante */
    --secondary-color: #dd5602; /* Gris para acentos */
    --accent-color:  #dd5602; /* Amarillo para resaltar */
    --text-color: #012141; /* Texto oscuro */
    --light-bg: #f8f9fa; /* Fondo claro */
    --dark-bg: #051b32; /* Fondo oscuro (para footer) */

    /* Tipografía (Inter) */
    --font-primary: 'Inter', sans-serif;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
}

/* Reset básico */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #ffffff 50%, #f4f6f8 50%);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

h1, h2, h3 {
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin-bottom: var(--spacing-sm);
}

ul {
    list-style: none;
}

/* Contenedor principal para centrar contenido */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ====================================
   2. Componentes (Botones)
   ==================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #021e3c; /* Un tono más oscuro */
    color: #fff;
    opacity: 1; /* Sobreescribe el hover de <a> */
}

/* Estilo para el botón de navegación (opcional, si lo mantienes) */
.nav a.btn {
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: var(--text-color);
}

.nav a.btn:hover {
    background-color: #07093e;
}

/* Header */ 
header {
  display: flex;
  justify-content: space-between; /* Logo a la izquierda, menú a la derecha */
  align-items: center;
  padding: 1rem 5%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo */
.logo img {
  height: 150px; /* 🔹 Aumenta el tamaño del logo */
  width: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05); /* Pequeña animación al pasar el cursor */
}

/* Navegación */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem; /* Espacio entre enlaces */
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1.05rem; /* 🔹 Tamaño del texto para balancear con el logo */
  transition: color 0.3s ease;
}

nav a:hover {
  color: #dd5602; /* Usa tu color corporativo */
}

/* 🔹 Responsive para móviles */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  .logo img {
    height: 70px; /* Logo un poco más pequeño en móviles */
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  nav a {
    font-size: 1rem;
  }
}


/* ====================================
   4. Hero Section
   ==================================== */
.hero {
  background: linear-gradient(135deg, #001a35, #002b55);
  color: #fff;
  text-align: center;
  padding: 8rem var(--spacing-sm);
}




.hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.hero h1 span {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ====================================
   5. Secciones Generales
   ==================================== */
section {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    color: var(--text-color);
}

/* ====================================
   6. Servicios (CSS Grid)
   ==================================== */
.service-grid {
    display: grid;
    /* Define 2 columnas de igual ancho para escritorio */
    grid-template-columns: repeat(2, 1fr); 
    gap: var(--spacing-md);
    max-width: 900px; /* Limita el ancho del grid */
    margin: 0 auto;
    text-align: left;
}

.service-card {
    background-color: var(--light-bg);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.service-card ul {
    list-style: disc;
    padding-left: var(--spacing-md);
}

.service-card li {
    margin-bottom: var(--spacing-xs);
}

/* ====================================
   7. Redes Sociales (CSS Grid - 2 columnas)
   ==================================== */
.social-grid {
    display: grid;
    /* Define 2 columnas de igual ancho */
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    max-width: 1000px; /* Un poco más ancho para los iframes */
    margin: 0 auto;
}

.social-card {
    background-color: #fff;
    border: 1px solid var(--light-bg);
    border-radius: 8px;
    overflow: hidden; /* Asegura que el iframe no se desborde */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.social-card h3 {
    padding: var(--spacing-sm);
    margin-bottom: 0;
    background-color: var(--primary-color);
    color: #fff;
}

/* Ajuste para los iframes dentro de las tarjetas sociales */
.social-card iframe {
    display: block; /* Elimina el espacio extra inferior de los iframes */
}

/* ====================================
   8. Footer
   ==================================== */
.footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: var(--spacing-md) 0;
    text-align: center;
    margin-top: var(--spacing-lg);
}

.footer p {
    margin-bottom: var(--spacing-xs);
}

.footer a {
    color: var(--accent-color);
    margin: 0 var(--spacing-xs);
}

/* ====================================
   9. Media Queries (Responsiveness)
   ==================================== */

/* Móviles (Pantallas más pequeñas de 768px) */
@media (max-width: 768px) {

    /* Ajuste de Tipografía y Hero */
    .hero {
        padding: 5rem var(--spacing-sm);
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }

    /* Navegación (Menú hamburguesa) */
    .nav-toggle {
        display: block; /* Muestra el botón de toggle */
    }

    .nav {
        /* Oculta y prepara el menú para aparecer */
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px; /* Altura aproximada del header */
        right: 0;
        background-color: #fff;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: var(--spacing-sm) 0;
        z-index: 999;
    }

    .nav.open {
        display: flex; /* Muestra el menú cuando tiene la clase 'open' */
    }

    .nav a {
        padding: 0.75rem var(--spacing-md);
        border-bottom: 1px solid var(--light-bg);
    }

    /* Redes Sociales y Servicios (Grid de 1 columna) */
    .service-grid, 
    .social-grid {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
        max-width: 500px;
    }

    /* Ajuste de iframes para que sean más flexibles en móvil */
    .social-card iframe {
        height: 300px; /* Altura más manejable en móvil */
    }

    .social-card {
        margin-bottom: var(--spacing-md);
    }
}
/* WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 100;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}
/* ============================
   ESTILOS SOLO PARA "NOSOTROS"
   ============================ */
.nosotros-page {
  background-color: #f9fafc;
  color: var(--text-color);
}

/* Encabezado de la sección */
.nosotros-page .about-header {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('nosotros-bg.jpg') center/cover;
  color: #fff;
}

.nosotros-page .about-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.nosotros-page .about-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Cuerpo de la página */
.nosotros-page .about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.nosotros-page .about-content img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nosotros-page .about-text {
  text-align: justify;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Sección del equipo */
.nosotros-page .team {
  background-color: #fff;
  padding: 4rem 1rem;
  text-align: center;
}

.nosotros-page .team h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.nosotros-page .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.nosotros-page .team-member {
  background: var(--light-bg);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.nosotros-page .team-member:hover {
  transform: translateY(-5px);
}

.nosotros-page .team-member img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.nosotros-page .team-member h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.nosotros-page .team-member p {
  color: var(--secondary-color);
  font-size: 0.9rem;
}
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #f7f8fa;
  color: #001a35;
}

.mision-vision {
  padding: 80px 10%;
  background: linear-gradient(135deg, #ffffff 50%, #f4f6f8 50%);
}

.container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.text {
  flex: 1 1 500px;
}

.text h1 {
  color: #001a35;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.text h2 {
  color: #001a35;
  font-size: 26px;
  margin-top: 30px;
  margin-bottom: 10px;
}

.text h2 span {
  color: #dd5602;
}

.text p {
  line-height: 1.7;
  font-size: 17px;
  color: #333;
}

.text ul {
  margin-top: 10px;
  list-style: none;
  padding: 0;
}

.text ul li {
  margin: 10px 0;
  font-size: 16px;
  position: relative;
  padding-left: 25px;
}

.text ul li::before {
  content: "✔";
  color: #dd5602;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.btn {
  display: inline-block;
  margin-top: 25px;
  background-color: #dd5602;
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #001a35;
  transform: scale(1.05);
}

.image {
  flex: 1 1 400px;
  text-align: center;
}

.image img {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    text-align: center;
  }

  .text h1 {
    font-size: 30px;
  }

  .text h2 {
    font-size: 22px;
  }

  .btn {
    padding: 10px 24px;
  }

  .image img {
    max-width: 100%;
  }
}

/* ====================================
   SECCIÓN DE SERVICIOS CON IMÁGENES
   ==================================== */
.services-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-item img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: block;
  position: relative;
  z-index: 1;
}

.service-item h3,
.service-item ul,
.service-item a {
  position: relative;
  z-index: 2;
}

.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 26, 53, 0.9) 100%);
  color: #fff;
  padding: 1.2rem;
  text-align: left;
}

.service-overlay h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .services-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-gallery {
    grid-template-columns: 1fr;
  }

  .service-overlay h3 {
    font-size: 1rem;
  }
}
.whatsapp-btn {
  display: inline-block;
  background-color: #dd5602;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #001a35;
  transform: scale(1.05);
}

.btn-vermas {
  display: inline-block;
  margin-top: 1rem;
  background: #e63946;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-vermas:hover {
  background: #c92d3c;
}

.btn-contacto {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid #ff6600; /* Reborde vibrante */
  border-radius: 6px;
  background-color: #fff;
  color: #ff6600;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.3);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
}

.btn-contacto:hover {
  background-color: #ff6600;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 102, 0, 0.5);
}
.services-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.service img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(100%);
  transition: all 0.5s ease;
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease, background 0.4s ease;
  border-radius: 12px;
}

/* Hover en PC */
.service:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.service:hover .service-overlay {
  opacity: 1;
}

/* En móviles: mostrar color y overlay por defecto */
@media (hover: none) {
  .service img {
    filter: grayscale(0%) !important;
  }
  .service .service-overlay {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.35) !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .services-gallery {
    grid-template-columns: 1fr;
  }
}



