/* ============================== ESTILOS GENERALES ================================*/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #2f3383;
    color: white;
}

h1, h2, h3 {
    margin: 0;
}



/* ============================== ENCABEZADO ================================*/
header {
    background-color: #2f3383;
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Esto hará que el menú "flote" */
}

/* Para que el contenido de los productos no se pegue al header */
main {
    display: block;
    overflow: hidden;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
    padding: 5px 0;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
}

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* ============================== HERO / PORTADA =================================*/
.hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    animation: slide 20s infinite;
    transition: background-image 1s ease-in-out;
    position: relative;
}

@keyframes slide {
    0%, 33%  { background-image: url("../img/banner.jpg"); }
    34%, 66% { background-image: url("../img/banner1.jpg"); }
    67%, 100% { background-image: url("../img/banner2.jpg"); }
}

.hero-text {
    position: absolute;
    bottom: 40px;
    right: 60px;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 30px;
    border-radius: 8px;
    text-align: right;
}

.hero-text h2 {
    color: #ffcc00;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero-text h3 {
    color: white;
    font-size: 1.5em;
    margin-bottom: 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    font-weight: bold;
}

/* ============================== LÍNEAS DE NEGOCIO ================================*/
.lineas {
    background-color: #f8f8f8;
    padding: 60px 20px;
    text-align: center;
    color: #333;
}

.lineas h2 {
    font-size: 2em;
    margin-bottom: 40px;
    color: #2f3383
}

/* 🔥 Grid fijo 2x2 */
.lineas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

.linea-titulo {
    color: #2f3383 !important; /* fuerza que el título quede azul */
    margin: 15px 0 10px;
    font-weight: bold;
}

.linea-detalle {
    background-color: #ffffff;
    color: #000000;
    padding: 50px 20px;
}

.linea-detalle-titulo {
    color: #2f3383;
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
}

.linea-detalle-contenido {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.linea-detalle-contenido.linea-detalle-der {
    flex-direction: row-reverse; /* Para alternar imagen a la derecha */
}

.detalle-img {
    width: 50%; /* Imagen a la mitad del tamaño */
    border-radius: 10px;
    object-fit: cover;
}

.detalle-texto {
    width: 50%;
    font-size: 1rem;
    line-height: 1.6em;
}





/* Tarjetas */
.linea {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    color: black;
}

.linea:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.linea img {
    width: 100%;
    max-width: 200px;   /* 🔹 Tamaño mediano */
    height: auto;       /* 🔹 Mantiene proporción correcta */
    display: block;
    margin: 0 auto;     /* 🔹 Centrada */
    border-radius: 8px;
}


.linea h3 {
    margin: 15px 0 10px;
    color: #3A42BA;
    font-size: 1.3em;
}

.linea p {
    font-size: 0.95em;
    color: #444;
    margin-bottom: 15px;
}

/* Botón */
.btn-linea {
    display: inline-block;
    background-color: #3A42BA;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: bold;
}

.btn-linea:hover {
    background-color: #2e3295;
}




/* ============================== SECCIÓN INSPIRACIONAL ================================*/
.inspiracion {
    background-color: #2f3383;
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
}

.inspiracion h2 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 15px;
}

.inspi-text {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6em;
}

.inspiracion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: auto;
}

.inspi-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .inspiracion-grid {
        grid-template-columns: 1fr;
    }
}




/* ============================== PRODUCTOS ================================*/
.productos {
    text-align: center;
    padding: 60px 20px;
}

.productos h2 {
    color: #2f3383;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 90%;
    margin: auto;
}

.producto {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    color: black;
}

.producto img {
    width: 100%;
    border-radius: 10px;
}

.producto h3 {
    margin: 15px 0 5px 0;
    color: #333;
}

.productos {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

.productos h2 {
    margin-bottom: 40px;
    color: #2f3383;
    font-size: 2em;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 🔹 5 productos por fila */
    gap: 25px;
    width: 95%;
    margin: auto;
}

.producto {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.producto img {
    width: 100%;
    max-width: 160px;   /* 🔹 Tamaño controlado */
    height: auto;
    margin: 0 auto;
    display: block;
}

.producto h3 {
    margin: 12px 0 6px;
    color: #333;
}

.producto p {
    color: #444;
    font-size: 0.9rem;
}

.precio {
    font-weight: bold;
    color: #2f3383;
    margin-top: 5px;
}

/* Botón azul tipo Pintecol */
.btn-cotizar {
    background-color: #2f3383;
    color: white;
    padding: 10px 18px;
    display: inline-block;
    border-radius: 6px;
    margin-top: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-cotizar:hover {
    background-color: #1f2460;
}

/* Productos Destacados */
.productos {
    padding: 40px 20px;
    text-align: center;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-top: 30px;
}

/* Tarjeta del producto */
.producto {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

/* Imagen */
.producto img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* 🔵 TÍTULO DEL PRODUCTO (ahora sí funciona y se ve) */
.titulo-producto {
    font-size: 18px;
    color: #4a6cff; /* azul claro */
    margin: 12px 0 6px;
    font-weight: 700;
    text-align: center;
}

/* Descripción */
.producto p {
    font-size: 14px;
    margin-bottom: 12px;
    color: #333;
}

/* Botón cotizar */
.btn-cotizar {
    display: inline-block;
    background: #2f3383;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.btn-cotizar:hover {
    background: #1f2460;
}



/* RESPONSIVO: 1 producto por fila en móvil */
@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================== NOSOTROS ================================*/
.nosotros {
    background-color: #fff3f3;
    text-align: center;
    padding: 60px 20px;
    color: black;
}

.nosotros h2 {
    color: #2f3383;
}

/* ============================== CONTACTO ================================*/
.contacto {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    color: black;
}

/* ============================== PIE DE PÁGINA ================================*/
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
}
/* Responsive: 1 producto por fila en móvil */
@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: 1fr !important;
    }
}



/* 🔹 DETALLES DE LÍNEAS MODERNOS */
.linea-detalle {
    background-color: #ffffff !important; /* fondo blanco */
    color: #000000 !important;           /* texto negro */
    padding: 60px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.linea-detalle-contenido {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.linea-detalle-contenido img {
    flex: 1 1 45%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.linea-detalle-contenido div {
    flex: 1 1 50%;
}

.linea-detalle h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.linea-detalle p {
    font-size: 1rem;
    line-height: 1.6em;
    margin-bottom: 15px;
    text-align: justify;
}

.linea-detalle-izq {
    flex-direction: row;
}

.linea-detalle-der {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .linea-detalle-contenido {
        flex-direction: column !important;
        text-align: center;
    }
    .linea-detalle-contenido img,
    .linea-detalle-contenido div {
        flex: 1 1 100%;
    }
}


/* =============================
   OVERRIDE FINAL - Galería transformación
   Forzar 3 imágenes pequeñas en una línea
   Pegar AL FINAL de css/style.css
   ============================= */

/* contenedor: fila forzada, centrado */
body .seccion-transformacion .galeria-transformacion {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;     /* mantener en UNA sola línea */
  overflow-x: auto !important;      /* si no caben, aparecerá scroll horizontal */
  -webkit-overflow-scrolling: touch !important;
}

/* asegurar que cada item no crezca */
body .seccion-transformacion .galeria-transformacion .item-transformacion {
  flex: 0 0 auto !important;
  display: inline-block !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* IMÁGENES: tamaño fijo pequeño y prioridad máxima */
body .seccion-transformacion .galeria-transformacion .item-transformacion img,
body .seccion-transformacion .galeria-transformacion img {
  width: 150px !important;
  max-width: 150px !important;
  height: 100px !important;
  max-height: 100px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  display: block !important;
}

/* Si quieres evitar el scroll en pantallas grandes (intentar mantener centrado) */
@media (min-width: 1100px) {
  body .seccion-transformacion .galeria-transformacion {
    overflow-x: visible !important;
  }
}

/* En móvil permitir apilar o permitir scroll (mejor UX) */
@media (max-width: 768px) {
  body .seccion-transformacion .galeria-transformacion {
    flex-wrap: nowrap !important; /* si prefieres que se apilen, cambia a wrap */
    gap: 10px !important;
  }
  body .seccion-transformacion .galeria-transformacion img {
    width: 120px !important;
    height: 80px !important;
  }
}

/* ============================== FOOTER ================================ */
.footer-pintecol {
    background-color: #2f3383; /* azul Pintecol */
    color: #ffffff;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

.footer-pintecol .footer-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-pintecol .footer-info {
    text-align: left;
}

.footer-pintecol .footer-logo img {
    width: 180px; /* logo más pequeño */
    margin-bottom: 15px;
}

.footer-pintecol a {
    color: #ffffff;
    text-decoration: none;
}

.footer-pintecol a:hover {
    text-decoration: underline;
}

/* Sitemap interno */
.footer-sitemap {
    margin-left: -20px; /* Ajusta el valor a tu gusto */
}


.footer-pintecol .footer-sitemap h4 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 1.1rem;
}

.footer-pintecol .footer-sitemap ul {
    list-style: none;
    padding: 0;
}

.footer-pintecol .footer-sitemap ul li {
    margin-bottom: 5px;
}

.footer-logo {
    width: 150px;          /* tamaño del logo */
    margin-left: 60px;    /* mueve el logo hacia la derecha */
    margin-top: 10px;     /* mueve el logo hacia abajo */
}



/* Pie de copyright */
.footer-pintecol .footer-copy {
    text-align: left;
    margin-top: 20px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 10px;
}

footer p {
    text-align: center;
}

/* 📱 Responsive */
@media (min-width: 768px) {
    .footer-pintecol .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

/* Banner de contacto */
.contacto-banner {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.contacto-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contacto-banner h1 {
    position: absolute;
    bottom: 20px;
    left: 30px;
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 5px #000;
}

/* Contenido de contacto */
.contacto-contenedor {
    display: flex;
    justify-content: space-between;
    padding: 40px;
    gap: 40px;
}

.contacto-info {
    width: 60%;
}

.contacto-info h2 {
    color: #003366;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.contacto-form input, 
.contacto-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contacto-form button {
    background: #003366;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contacto-lateral {
    width: 30%;
    background: #f2f2f2;
    padding: 20px;
    border-radius: 10px;
}

.contacto-lateral h3 {
    color: #003366;
    margin-bottom: 10px;
}
/* ---- HEADER ---- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .logo img {
    height: 55px;
}

.menu a {
    margin-left: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.menu a:hover,
.menu .activo {
    color: #0a66c2; /* azul profesional */
}

/* ---- CONTENEDOR CONTACTO ---- */
/* Contenedor principal de la página de contacto */
.contacto-container {
    display: flex;
    justify-content: center;      /* centra horizontal */
    align-items: center;          /* centra vertical */
    min-height: 80vh;             /* ajusta altura para centrar en pantalla */
    gap: 40px;
    padding: 40px 20px;
    background: #ffffff;
}

/* El bloque de texto que quieres centrar */
.contacto-info {
    max-width: 500px;
}


/* Texto informativo */
.contacto-info {
    width: 50%;
}

.titulo-blanco {
    font-size: 36px;
    color: #fff;
    font-weight: 800;
}

.descripcion {
    margin-top: 15px;
    font-size: 18px;
    color: #e4e4e4;
    line-height: 1.6;
}

/* Fondo oscuro elegante */
body {
    background: #1a1a1a;
}

/* ---- FORMULARIO ---- */
.contacto-form {
    width: 50%;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.contacto-form label {
    font-weight: 600;
    display: block;
    margin-top: 15px;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contacto-form button {
    margin-top: 20px;
    padding: 14px;
    width: 100%;
    background: #0a66c2;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contacto-form button:hover {
    background: #004a9f;
}
/* ====== Contacto: quitar fondo negro ====== */
.contacto-info {
    background: #ffffff !important;   /* fondo blanco */
    color: #000000 !important;        /* texto negro */
}

/* Si el texto está dentro de otro div */
.contacto-info p,
.contacto-info h1,
.contacto-info h2,
.contacto-info h3 {
    color: #000000 !important;
}
.contacto,
.contacto-header,
.contacto-hero,
.contacto-texto {
    background: #ffffff !important;
    color: #000000 !important;
}
.contacto,
.contacto-header,
.contacto-hero,
.contacto-texto {
    background: #ffffff !important;
    color: #000000 !important;
}
/* ---------------------------
  FIX RÁPIDO: FORZAR FONDO BLANCO
  Sólo aplica a la página/área de contacto
----------------------------*/

/* Selector amplio pero específico para evitar romper otras secciones */
body .contacto,
body .contacto-container,
body .contacto-contenedor,
body .contacto-info,
body .contacto-header,
body .contacto-hero,
body .contacto-texto {
    background: #ffffff !important;   /* fondo blanco */
    color: #000000 !important;        /* texto negro */
}

/* Asegurar títulos y párrafos dentro */
body .contacto h1,
body .contacto h2,
body .contacto h3,
body .contacto p,
body .contacto .descripcion,
body .contacto .titulo-blanco {
    color: #000000 !important;
}

/* Si el título lo quieres en blanco sobre imagen (hero) */
body .contacto-hero .titulo-blanco,
body .hero .titulo-blanco {
    color: #ffffff !important; /* si usas hero con imagen y quieres el título blanco */
}

/* Asegurar el formulario tenga fondo blanco (si quedó oscuro) */
body .contacto-form,
body .contacto-form input,
body .contacto-form textarea,
body .contacto-form button {
    background: #ffffff !important;
    color: #0a66c2 !important;
    border-color: #ccc !important;
}

/* Evitar herencias raras que pongan opacidad o overlay */
body .contacto * {
    background-image: none !important;
    background-blend-mode: normal !important;
}

/* Si algún contenedor tenía un overlay negro con opacity, ocultarlo */
body .contacto::before,
body .contacto::after,
body .contacto-container::before,
body .contacto-container::after {
    display: none !important;
    content: none !important;
}
