/* ------------------------------------------------------
   FUENTE BASE
------------------------------------------------------ */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #000;
    background: #fff;
}

/* ------------------------------------------------------
   VARIABLES
------------------------------------------------------ */
:root {
    --radius: 12px;
    --radius-small: 8px;
    --transition: 0.25s ease;
    --shadow-soft: 0 8px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 28px rgba(0,0,0,0.10);
    --blue-light: #D9E7F3;
    --blue-medium: #C0E1FF;
    --blue-soft: #D5EEFF;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: auto;
}

/* ------------------------------------------------------
   ANIMACIONES
------------------------------------------------------ */

/* Fade-in suave */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Zoom leve para imágenes */
img {
    transition: transform 0.3s ease;
}

/* Hover elegante para tarjetas y comentarios */
.card,
.comentario-card {
    transition: var(--transition);
}

.card:hover,
.comentario-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Hover elegante en botones */
.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ------------------------------------------------------
   HEADER
------------------------------------------------------ */
.header {
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid #e6e6e6;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center; 
  gap: 0.5rem; 
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo-img {
  max-width: 80px;
  height: auto;
  border-radius: 50px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: black;
  font-weight: 500;
}

.header-item {
  position: relative;
  cursor: pointer;
  color: #454545;
  font-weight: 500;
  transition: color 0.3s;
}

.header-item::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: #7042BF;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.header-item:hover {
  color: #7042BF;
}

.header-item:hover::after {
  width: 100%;
}

.btn {
  background: black;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #7042bf;
}

/* === DROPDOWN === */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 150px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* === HAMBURGUESA === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ------------------------------------------------------
   BOTONES
------------------------------------------------------ */

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-dark {
    background: #000;
    color: #fff;
}

.btn-dark-large {
    background: #000;
    color: #fff;
    padding: 20px 32px;
    font-size: 22px;
    border-radius: var(--radius-small);
}

/* ------------------------------------------------------
   HERO
------------------------------------------------------ */

.hero img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  margin-top: 10%;
}

/* ------------------------------------------------------
   LABELS (pages-labels)
------------------------------------------------------ */
.pages-labels {
    width: 100%;
    background-color: #f0f4f8; /* Fondo claro */
    padding: 60px 0 60px 0;    /* Padding superior e inferior para separar */
    box-sizing: border-box;
}

.labels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    text-align: center;
    gap: 20px;
    font-size: 20px;
    font-weight: 600;
    max-width: 1280px;
    margin: 0 auto;
}

.labels-grid a {
    text-decoration: none;
    position: relative;
    color: #000;
    font-weight: 600;
    transition: color 0.3s;
}

.labels-grid a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #7042BF;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.labels-grid a:hover {
    color: #7042BF;
}

.labels-grid a:hover::after {
    width: 100%;
}

.subtitle-center {
    max-width: 1280px;
    margin: 80px auto 50px auto; 
    font-size: 32px;
    font-weight: 600;
    text-align: center;
}


/* ------------------------------------------------------
   TARJETAS COLOREADAS
------------------------------------------------------ */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin: 80px auto;
}

.card {
    padding: 32px;
    border-radius: 18px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.card img {
    width: 100%;
    height: 250px;       
    object-fit: cover;   
    border-radius: 18px;
    margin-top: 24px;
}

.blue-light { background: var(--blue-light); }
.blue-medium { background: var(--blue-medium); }
.blue-soft { background: var(--blue-soft); }

/* ------------------------------------------------------
   SERVICIOS SIMPLES
------------------------------------------------------ */

.slider-section {
    width: 100%;
    padding: 50px 0;
    background: var(--gris-claro);
    border-top: 1px solid #dfe7ec;
    overflow: hidden;
}

/* Contenedor principal */
.services-row {
    width: 100%;
    overflow: hidden;
}

/* Track que se mueve */
.services-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: scrollLeft 35s linear infinite;
}

.services-track img {
    width: 280px;
    height: 220px;
    border-radius: 10px;
    object-fit: cover;
    transition: 0.3s ease;
}

.services-track img:hover {
    transform: scale(1.06);
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
    .services-track img {
        width: 130px;
        height: 90px;
    }
}

/* ------------------------------------------------------
   CTA
------------------------------------------------------ */

.cta {
    background: #5584CA;
    padding: 40px 0;
    margin-top: 80px;
}

.cta-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cta h3 {
    color: #fff;
    font-size: 40px;
    font-weight: 600;
}

/* ------------------------------------------------------
   SERVICIOS DETALLADOS
------------------------------------------------------ */

.services-detail {
    background: #EDEDED;
    padding: 60px;
    border-radius: 20px;
    margin-top: 10px;
}

.title-center {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    gap: 40px;
    flex-wrap: wrap;
}

.service-item.reverse {
    flex-direction: row;
    margin-bottom: 1px;
}

.service-text {
    flex: 1;
    max-width: 520px;
}

.service-text h3 {
    font-size: 36px;
    margin: 0 0 16px;
}

.service-text p {
    font-size: 28px;
    margin-bottom: 20px;
}

.service-image img {
    width: 100%;
    border-radius: 18px;
}

/* ------------------------------------------------------
   COMENTARIOS
------------------------------------------------------ */

.comentarios {
    margin: 80px auto;
    padding: 0 20px; 
}

.comentarios h2 {
    font-size: 48px;
    margin-bottom: 40px;
    text-align: center;
}

.comentarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.comentario-card {
    background-color: #f7f7f7;
    padding: 1.5rem 1.2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: none; 
}

.comentario-card:hover {
    box-shadow: none;
    transform: none;
}

.comentario-card blockquote {
    font-style: italic;
    text-align: center;
    color: #444;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
    quotes: "«" "»";
}

.autor {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.autor img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.autor strong {
    color: #222;
    font-weight: 700;
}

.autor span {
    color: #666;
    font-size: 0.85rem;
}

/* ------------------------------------------------------
   FOOTER
------------------------------------------------------ */

/* --- footer.css --- */

.footer {
    background-color: #222; /* Fondo oscuro sólido */
    color: #f4f4f4;
    padding-top: 50px;
    font-size: 15px;
    border-top: 4px solid #0056b3; /* Línea decorativa superior (azul corporativo) */
}

/* Layout del contenido principal */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px; /* Evita que se aplasten en móviles */
}


/* Columna 1: Logo */
.footer-logo {
    max-width: 120px; /* Tu modificación */
    vertical-align: middle;
    margin-right: 10px;
    display: block; /* Asegura que el logo tenga su propio espacio */
    margin-bottom: 10px;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    vertical-align: middle;
}

.footer-logo-link {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-desc {
    color: #ccc;
    line-height: 1.6;
}

/* Encabezados de columnas */
.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #0056b3; /* Mismo azul que el borde superior */
}

/* Enlaces y Listas */

.footer-links, .contact-list {
    list-style: none; /* Quita los puntos de la lista */
    padding: 0;
    margin: 0;
    
    /* Esto es lo que los ordena verticalmente: */
    display: flex; 
    flex-direction: column; 
    gap: 12px; /* Espacio exacto entre cada línea (servicios, nosotros, etc.) */
}

.footer-links li, .contact-list li {
    margin: 0; /* Reseteamos margen para usar el gap de arriba que es más preciso */
    width: 100%; /* Asegura que ocupe el ancho disponible */
}

/* Estilos de los enlaces */
.footer-links a, .contact-list a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block; /* Ayuda a que la animación funcione mejor */
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px; /* Pequeña animación al pasar el mouse */
}

.contact-list li {
    color: #ccc;
}

.contact-list strong {
    color: #fff;
    margin-right: 5px;
}

/* Barra inferior (Copyright) */
.footer-bottom {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #888;
}

/* --- RESPONSIVE / ADAPTABILIDAD --- */

/* Para Tablets (pantallas medianas, aprox entre 600px y 900px) */
@media (max-width: 900px) {
    .footer-content {
        justify-content: center; /* Centra las columnas si sobran espacios */
        gap: 30px; /* Reduce un poco el espacio */
    }

    .footer-col {
        /* Esto obliga a que haya 2 columnas por fila */
        flex: 1 1 40%; 
        min-width: 250px; 
        text-align: left; /* Mantiene alineación izquierda en tablets */
    }
}

/* Para Celulares (pantallas pequeñas, menos de 600px) */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column; /* Apila todo verticalmente */
        align-items: center;    /* Centra los bloques */
        gap: 40px;
        padding-bottom: 20px;
    }

    .footer-col {
        width: 100%;       /* Que ocupe todo el ancho */
        text-align: center; /* Texto centrado para móvil (se ve mejor) */
        padding: 0 10px;    /* Un poco de aire a los lados */
    }

    /* --- EN TU ARCHIVO css/footer.css --- */

/* Busca esta parte y déjala así: */
.footer-links, .contact-list {
    list-style: none; /* Quita los puntos de la lista */
    padding: 0;
    margin: 0;
    
    /* ESTO ES LA MAGIA PARA ORDENARLOS VERTICALMENTE */
    display: flex; 
    flex-direction: column; 
    gap: 12px; /* Espacio entre cada línea */
}

/* Asegura que los enlaces ocupen el ancho y no se pongan de lado */
.footer-links li, .contact-list li {
    width: 100%;
}

.footer-links a, .contact-list a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block; /* Importante para que el clic funcione en toda la línea */
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

    /* Ajuste especial para el logo en móvil */
    .footer-logo {
        margin: 0 auto 15px auto; /* Centra la imagen del logo */
    }
    
    /* Línea decorativa del título centrada */
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%); /* Mueve la línea al centro exacto */
    }
}