/* ===========================================
   style.css - Estilos principales (actualizado)
   - Variables para modificar logo y título fácilmente
   - Correcciones en hover de menú (sin cambio de color)
   - Menú responsive fijo y desplegable hacia abajo (slide-down)
   =========================================== */

/* ---------- VARIABLES GLOBALES (ajústalas según necesites) ---------- */
/* Reset ligero */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { 
  height: 100%; 
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial; 
  color: #222; 
  /* 💡 CORRECCIÓN PARA EL DESBORDAMIENTO HORIZONTAL 💡 */
  overflow-x: hidden; 
}

:root{
  --logo-size: 250px;            /* <-- CAMBIA AQUI para ampliar el logo (ej. 100px) */
  --title-font-size: 3.5rem;   /* <-- CAMBIA AQUI para ampliar el título (ej. 2.4rem) */
  --nav-height: 64px;          /* altura del nav fijo */
  --nav-bg: rgba(0,0,0,0.35);  /* color de fondo del nav (semi-transparente) */
  --max-menu-height: 70vh;     /* altura máxima del menú cuando se despliega en móvil */
}

/* Reset ligero */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial; color: #222; }

/* Contenedor */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 2rem 0;
}

/* ============================
   HEADER
   ============================ */
/* Localiza este bloque en la parte superior/media de tu CSS */
.site-header {
  position: relative;
  /* Imagen de fondo del header (ancho completo) */
  background: url(Img/FD.png) center/cover no-repeat;
  min-height: 400px; /* <--- VERIFICA ESTA CORRECCIÓN CLAVE */
  color: white;
  /* separa el contenido para que no quede bajo el nav fijo */
  padding-top: var(--nav-height);
}
header, 
.navbar a, 
.dropdown-menu li a, 
.header-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700; /* Negrita */
}
/* NAV: fijo y visible siempre (especialmente en móvil) */
.main-nav {
  position: fixed; /* importante: fija el nav en la parte superior */
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--nav-bg);
  backdrop-filter: blur(4px);
}

.divisor {
  border-top: 1px solid rgb(69, 69, 202); /* Línea superior azul */
  margin: 40px 0;             /* Espaciado arriba y abajo */
}
/* layout interno del nav */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 94%);
  margin: 0 auto;
  padding: 0.6rem 0.8rem;
  gap: .6rem;
}

/* Marca para móvil */
.brand-mobile { display:none; color: white; font-weight:700; text-decoration: none; }

/* Botón hamburguesa */
.nav-toggle {
  display: none; /* será visible en móvil */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: .35rem;
}
.hamburger {
  display: block;
  width: 28px;
  height: 2px;
  background: white;
  position: relative;
  transition: background .25s ease;
}
.hamburger::before, .hamburger::after {
  content: "";
  width: 28px;
  height: 2px;
  background: white;
  position: absolute;
  left: 0;
  transition: transform .3s ease, opacity .2s ease;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Estado "open" del botón: transforma a X vía CSS (no modificamos estilos inline desde JS) */
.nav-toggle.open .hamburger { background: transparent; }
.nav-toggle.open .hamburger::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open .hamburger::after { transform: translateY(-8px) rotate(-45deg); }

/* Lista de navegación (desktop por defecto) */
.nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav-list a, .drop-btn {
  color: white;
  text-decoration: none;
  padding: .6rem .9rem;
  border-radius: 6px;
  transition: transform .18s ease, text-decoration .12s ease;
  background: transparent; /* sin manchas al pasar el cursor */
  /* IMPORTANTE: dejo el color fijo (white); el hover NO cambiará el color */
}

/* Hover para el menú: reaccionan sin cambiar color (sube y subraya) */
.nav-list a:hover, .drop-btn:hover {
  transform: translateY(-3px);
  text-decoration: underline; /* reacción visual sin cambiar color */
}

/* Dropdown (desktop) */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; /* en desktop flota bajo el botón */
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(255,255,255,0.98);
  color: #111;
  border-radius: 8px;
  padding: .4rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transform-origin: top center;
  transform: translateY(6px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .18s ease;
  z-index: 60;
}
.dropdown li { list-style: none; }
.dropdown a {
  display: block;
  padding: .6rem .8rem;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  transition: background .12s ease;
}
/* dropdown hover: solo fondo suave (texto no cambia de color) */
.dropdown a:hover { background: #f2f2f2; }

/* Clase que activa dropdown (también usada por JS) */
.has-dropdown.open .dropdown {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* ============================
   Contenido del header (debajo del menú)
   ============================ */
.header-content {
  min-height: 320px;
  display: flex;
  align-items: center;
  color: white;
}
.header-overlay {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 0;
}

/* lado izquierdo: logo y título */
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Logo con variable para fácil ajuste */
.logo img {
  width: var(--logo-size);
  height: var(--logo-size);
  object-fit: contain;
  /* Para ampliar el logo: cambia --logo-size en :root */
}

/* Título con variable y utilidades para centrarlo o alinearlo */
.site-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* por defecto a la izquierda */
  gap: .15rem;
}
/* Clase utilitaria: si quieres centrar el título dentro de su bloque, añade "title-center" */
.site-title.title-center {
  align-items: center;
  text-align: center;
}

/* Tamaño del título controlado por variable */
.site-title h1 {
  font-size: var(--title-font-size);
  margin-bottom: .25rem;
  line-height: 1.05;
  /* Para aumentar/disminuir fuente modificar --title-font-size en :root */
}
.site-title .tagline { opacity: .9; font-size: 1.50rem; }

/* lado derecho: CTA */
.header-right { text-align: right; max-width: 40%; }
.lead { margin-bottom: 0.6rem; }
.cta {
  display: inline-block;
  background: #ff7a18;
  color: white;
  padding: .6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.header-right .lead {
  font-size: 20px;   /* Aumenta el tamaño de la letra */
  font-weight: bold; /* Hace el texto más grueso */
  text-align: center; /* Centra el texto */
  margin: 20px 0;    /* Espaciado arriba y abajo */
}
/* ============================
   SECCIONES (main)
/* ========================================= */
/* ESTILOS DE LA SECCIÓN PRINCIPAL */
/* ========================================= */
.section-contact {
    /* MODIFICAR: COLOR DE FONDO DE LA SECCIÓN */
    background-color: #f0f2f5;
    /* MODIFICAR: ESPACIADO SUPERIOR E INFERIOR DE LA SECCIÓN */
    padding: 4rem 0;
}

.container {
    /* MODIFICAR: ANCHO MÁXIMO DEL CONTENIDO */
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title-contact {
    /* MODIFICAR: COLOR, TAMAÑO Y FUENTE DEL TÍTULO */
    font-family: 'Arial', sans-serif;
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    /* MODIFICAR: MARGEN INFERIOR DEL TÍTULO */
    margin-bottom: 2rem;
}

/* ========================================= */
/* ESTILOS DEL RECUADRO Y FORMULARIO */
/* ========================================= */
.form-card {
    /* MODIFICAR: ANCHO DEL RECUADRO */
    max-width: 600px;
    margin: 0 auto;
    /* MODIFICAR: COLOR DE FONDO Y BORDES DEL RECUADRO */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    /* MODIFICAR: ESPACIADO INTERNO DEL RECUADRO */
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* MODIFICAR: ESPACIO ENTRE LOS CAMPOS */
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    /* MODIFICAR: FUENTE, TAMAÑO Y COLOR DE LAS ETIQUETAS */
    font-family: 'Verdana', sans-serif;
    font-size: 1rem;
    color: #555;
    /* MODIFICAR: MARGEN INFERIOR DE LAS ETIQUETAS */
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    /* MODIFICAR: ESTILO GENERAL DE LOS RECUADROS DE ENTRADA */
    width: 100%;
    /* MODIFICAR: ALTURA DE LOS RECUADROS */
    height: auto;
    padding: 0.8rem;
    border: 1px solid #ccc; /* MODIFICAR: COLOR DEL BORDE */
    border-radius: 8px; /* MODIFICAR: REDONDEZ DE LOS BORDES */
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff; /* MODIFICAR: COLOR DEL BORDE CUANDO SE ACTIVA */
}

.contact-form textarea {
    resize: vertical; /* Permite redimensionar solo verticalmente */
}

.btn-submit {
    /* MODIFICAR: COLOR, FUENTE, TAMAÑO Y BORDES DEL BOTÓN */
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem; /* MODIFICAR: MARGEN SUPERIOR DEL BOTÓN */
}

.btn-submit:hover {
    background-color: #0056b3;
}
/* ============================
   FOOTER
   ============================ */
.site-footer {
  background: url(Img/FD.png) center/cover no-repeat;
  color: rgb(252, 252, 252);
  padding: 2.5rem 0;
  .site-footer {
  text-align: center; /* centra todo el contenido del footer */
}

.footer-item.footer-text h4,
.footer-item.footer-text p {
  text-align: center; /* asegura que los textos estén centrados */
}
.footer-social {
  display: flex;
  justify-content: center; /* centra los iconos */
  gap: 10px;
  margin: 0.8rem 0;
}
}
.three-columns-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
}
.footer-item img { max-width: 100%; display: block; margin-bottom: .6rem; }
.footer-item a { color: #fff; text-decoration: none; display: inline-block; }
.map-link { display: block; margin-top: .4rem; font-size: .9rem; opacity: .9; }

/* ========================================= */
/* DISEÑO RESPONSIVE: MÓVIL Y TABLETA (<= 900px) */
/* ========================================= */
@media (max-width: 900px) {

  /* ------------------- */
  /* HEADER & TÍTULOS */
  /* ------------------- */
  :root {
    /* Ajusta el tamaño de las variables para móvil (¡IMPORTANTE!) */
    --logo-size: 80px;         /* Logo mucho más pequeño */
    --title-font-size: 2.2rem; /* Título reducido */
  }

  /* Header layout vertical en móvil */
  .header-overlay { 
    flex-direction: column; 
    gap: 1.5rem; 
    text-align: center; 
    padding: 2rem 0; 
  }
  .header-left {
    flex-direction: column; 
    gap: .5rem;
  }
  .site-title {
    align-items: center; 
    text-align: center;
  }
  .header-right { 
    text-align: center; 
    max-width: 100%; 
  }
  /* Asegura que no haya desbordamiento horizontal */
  .header-overlay, .nav-inner { width: 100%; padding: 0 1rem; }
  .nav-inner { padding: 0.6rem 0; }


  /* ------------------- */
  /* LAYOUT DE COLUMNAS (Secciones) */
  /* ------------------- */
  .two-columns { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .visual-grid { grid-template-columns: 1fr; }
  
  /* La cuadrícula de 3-columnas del footer DEBE apilarse */
  .three-columns-footer {  
    grid-template-columns: 1fr; /* Una sola columna en móvil */
    gap: 2rem; 
    text-align: center;
  }
  
  /* Asegura que la imagen del mapa no desborde */
  .footer-map img {
    max-width: 100%;
    height: auto;
  }
  
  /* ------------------- */
  /* FOOTER - Correcciones de fondo y color */
  /* ------------------- */
  .site-footer {
    /* RESTAURADO: Imagen de fondo para el footer en móvil */
    background: url(Img/FD.png) center/cover no-repeat;
    /* Asegura que el contenido quede centrado */
    text-align: center;
  }
  /* Centra los iconos sociales */
  .footer-social {
    justify-content: center;
  }
  
  /* CORRECCIÓN CLAVE: Restablece el color blanco del texto del footer */
  .site-footer, 
  .footer-item a,
  .footer-item h4, 
  .footer-item p {
    color: rgb(252, 252, 252) !important; /* Fuerza el color blanco */
  }


  /* ------------------- */
  /* NAVEGACIÓN (Móvil) */
  /* ------------------- */
  .brand-mobile { display:inline-block; }
  .nav-toggle { display: inline-block; }

  .nav-list {
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .33s ease;
    padding-left: 0;
    margin-top: .5rem;
    background: linear-gradient(rgba(0,0,0,0.02), rgba(0,0,0,0.04));
  }
  .nav-list.show {
    max-height: var(--max-menu-height); 
  }
  .nav-list li { padding: .45rem 1rem; border-top: 1px solid rgba(255,255,255,0.04); }

  /* Dropdowns en móvil: ahora forman parte del flujo (position: static) y se expanden verticalmente */
  .has-dropdown .dropdown {
    position: static;
    background: transparent;
    box-shadow: none;
    color: inherit;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height .22s ease;
    padding-left: 0.5rem;
  }
  .has-dropdown.open .dropdown {
    max-height: 400px;
  }
  .dropdown a { color: #111; background: rgba(255,255,255,0.95); border-radius: 6px; margin: .2rem 0; display:block; padding: .6rem .8rem;}
  .dropdown a:hover { background: #eee; }

  /* Evita solapamiento con header: el header-content tiene padding-top igual al nav */
  .site-header { padding-top: calc(var(--nav-height) + 10px); }
}

/* Desktop: permite hover para dropdown (no cambia color del enlace principal) */
@media (min-width: 901px) {
  .nav-list { display: flex; }
  .nav-list.show { max-height: none; }
  .has-dropdown:hover .dropdown { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
}
.social-fixed {
  position: fixed;
  top: 40%;
  left: 0;
  transform: translateY(-50%);
  z-index: 2000;
}

.social-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.social-main-icon {
  width: 50px; /* Tamaño del botón principal */
  transition: transform 0.3s;
}

.social-main-icon:hover {
  transform: scale(1.2); /* Efecto hover */
}

.social-icons {
  display: none; /* Ocultos por defecto */
  flex-direction: column;
  margin-top: 10px;
}

.social-icons a {
  margin: 5px 0;
  display: flex;
}

.social-icons img {
  width: 40px; /* Tamaño de los íconos */
  transition: transform 0.3s;
}

.social-icons img:hover {
  transform: scale(1.2); /* Efecto hover de los íconos */
}

/* Responsivo */
@media(max-width: 768px) {
  .social-fixed {
    top: 35%;
  }
  .social-main-icon {
    width: 40px;
  }
  .social-icons img {
    width: 35px;
  }
} 
/* Íconos de redes sociales en el footer */
.footer-social {
  margin: 1.8rem 0;       /* Separación arriba y abajo */
  display: flex;           /* Coloca los íconos en fila */
  gap: 20px;               /* Espacio entre íconos */
}

.footer-social a img {
  width: 50px;             /* Tamaño pequeño */
  height: 50px;
  transition: transform 0.3s; /* Efecto al pasar el cursor */
}

.footer-social a img:hover {
  transform: scale(1.2);   /* Crece un poco al pasar el cursor */
}
/* Estilos generales del footer */
.site-footer {
  background-color: #f8f8f8;   /* Fondo claro (puedes cambiarlo) */
  padding: 1px 1px;          /* Espacio interno arriba/abajo e izquierda/derecha */
  text-align: center;          /* Centra el contenido */
}

/* Ajuste para las imágenes dentro del footer */
.site-footer img {
  max-height: 200px;  /* Controla la altura máxima de las imágenes */
  width: auto;        /* Mantiene la proporción */
  height: auto;       /* Evita deformación */
  display: block;     /* Hace que se comporten como bloques */
  margin: 0 auto 10px; /* Centra y deja espacio inferior */
}

/* Responsive: en pantallas pequeñas (celulares) */
@media (max-width: 768px) {
  .site-footer img {
    max-height: 100px; /* Reduce la altura en móviles */
  }

  .site-footer {
    padding: 20px 10px; /* Menos espacio en móviles */
  }
} 
