/* ===========================
   RESET BÁSICO
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #000;
    /*padding-top: 100px; espacio para header fijo */
}

/* ===========================
   ENCABEZADO FIJO
=========================== */
header#encabezado {
    width: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ===========================
   LOGO CENTRADO
=========================== */
header #logo {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 10px auto;
}

/* ===========================
   NAVEGACIÓN
=========================== */
nav {
    width: 100%;
    background-color: #f80000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 50px;
    position: relative;
}

/* ===========================
   MENÚ PRINCIPAL
=========================== */
ul.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    position: relative;
}

ul.menu li {
    position: relative;
}

ul.menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    display: inline-block;
    position: relative;
    transition: color 0.3s;
}

/* Subrayado solo al pasar el ratón */
ul.menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

ul.menu li a:hover::after {
    width: 100%;
}

ul.menu li a:hover {
    color: #ffcccc;
}

/* ===========================
   SUBMENÚ DESKTOP
=========================== */
ul.menu li.submenu {
    position: relative;
}

ul.menu li.submenu > ul.submenu-lista {
    display: none;
    position: absolute;
    top: 100%; /* justo debajo del enlace Servicios */
    left: 0;
    background-color: #f80000;
    padding: 1rem;
    list-style: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-radius: 0.5rem;
    width: 250px;
    z-index: 1000; /* encima del resto del menú */
}

ul.submenu-lista li {
    margin: 0.1rem 0;
}

ul.submenu-lista li a {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Mostrar submenú sobre el menú, sin empujar otros enlaces */
ul.menu li.submenu:hover > ul.submenu-lista {
    display: block;
}

/* ===========================
   ICONOS DERECHA
=========================== */
.iconos-derecha {
    display: flex;
    gap: 15px;
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
}

.iconos-derecha .icono {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
}

.iconos-derecha .icono:hover {
    color: #cc0000;
}

/* ===========================
   BOTÓN HAMBURGUESA
=========================== */
.hamburguesa {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

/* ===========================
   MENÚ HAMBURGUESA MÓVIL
=========================== */
@media (max-width: 768px) {
    .hamburguesa {
        display: block;
    }

    ul.menu {
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 200px; 
        background-color: #f80000;
        padding-top: 20px;
        padding-left: 40px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 9999;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        gap: 20px;
    }

    ul.menu.show {
        transform: translateX(0);
    }

    /* Mantener los iconos a la derecha del todo */
    .iconos-derecha {
        position: absolute;
        top: -5px;
        right: 40px;
        transform: none; /* no se centra verticalmente porque el nav es más alto */
    }

    ul.menu li a {
        font-size: 1.3rem; /* letras más grandes */
        padding: 15px 0;
        text-decoration: none;
        display: inline-block;
        position: relative;
    }

    /* Subrayado solo al pasar ratón */
    ul.menu li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #fff;
        transition: width 0.3s ease;
    }

    ul.menu li a:hover::after {
        width: 100%;
    }

    /* Mostrar iconos en móvil */
    .iconos-derecha {
        display: flex;
        margin-top: 20px; /* separarlos del menú */
        gap: 15px;
    }

    /* Submenú móvil: aparece justo al lado derecho de "Servicios", mismo color #f80000 */
    ul.menu li.submenu > ul.submenu-lista {
        position: absolute;
        top: 5%;
        left: auto;
        right: -210px; /* justo al lado derecho */
        display: none;
        min-width: 250px;
        background-color: #f80000; /* mismo color del menú */
        padding: 10px;
        border-radius: 0;
        box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
        z-index: 10000;
        flex-direction: column;
    }

    ul.menu li.submenu:hover > ul.submenu-lista {
        display: flex;
    }

    ul.submenu-lista li a {
        font-size: 1rem;
        padding: 8px 10px;
    }
}

/* ===========================
   RESPONSIVE GENERAL
=========================== */
@media (max-width: 768px) {
    header #logo {
        max-width: 90%; /* ocupa un poco menos que todo el ancho */
        margin: 10px auto; /* centrado horizontal */
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 40px;
    }

    ul.menu {
        gap: 0;
    }

    ul.menu li a {
        padding: 10px 0;
    }

    ul.submenu-lista li {
        margin: 0.1rem 0; /* menos espacio vertical */
    }
    
}

/* ===========================
         INICIO
=========================== */

/* ======= SLIDER CON EFECTO FADE ======= */
#slider {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.slider-imagenes {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-imagenes img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider-imagenes img.activo {
    opacity: 1;
}

/* ======= DEGRADADO NEGRO ======= 
.filtro-negro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
    z-index: 1;
}*/

/* ======= RECTÁNGULO ROJO TRANSPARENTE ======= */
.rectangulo-solicitud {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 0, 0, 0.7);
    padding: 25px 40px;
    border-radius: 15px;
    text-align: center;
    color: #fff;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.rectangulo-solicitud h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.boton-solicitud {
    display: inline-block;
    padding: 10px 25px;
    background-color: #fff;
    color: #f80000;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.boton-solicitud:hover {
    background-color: #f80000;
    color: #fff;
}

/* ======= SECCIÓN DE BIENVENIDA ======= */
#bienvenida {
    padding: 60px 40px;
    background-color: #ffffff;
    text-align: center;
}

/* ======= Título de cada página ====== */
.titulo-tecnico {
    font-size: 2.8rem;
    font-weight: 800;
    color: #f80000;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeDown 1s ease forwards;
}

/* Párrafo general de la sección */
#bienvenida > .contenedor-bienvenida > p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* BLOQUES DESTACADOS */
.destacados {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.destacado {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    width: 450px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Imagen */
.destacado img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Título dentro de la tarjeta */
.destacado h3 {
    margin: 15px 15px 5px 15px;
    color: #f80000;
    font-size: 1.2rem;
}

/* Texto reducido solo dentro de las tarjetas */
#bienvenida .destacado p {
    margin: 0 15px 15px 15px;
    font-size: 0.95rem; /* Ajusta aquí el tamaño que prefieras */
    color: #333;
}

/* Hover tarjeta */
.destacado:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* Botón */
.boton-destacado {
    display: inline-block;
    margin: 0 0 15px 15px;
    padding: 8px 20px;
    background-color: #f80000;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.boton-destacado:hover {
    background-color: #fff;
    color: #f80000;
    border: 2px solid #f80000;
}

/* Animación del título */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
         SERVICIOS
=========================== */

#nuestros-servicios {
    padding: 25px 40px;
    background-color: #ffffff;
    text-align: center;
}

.titulo-seccion {
    font-size: 2.2rem;
    color: #f80000;
    margin-bottom: 40px;
    font-weight: 700;
}

/* GRID 3x3 */
.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* CADA SERVICIO */
.servicio {
    position: relative;
    display: block;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 350px; /*Altura imagen servicio*/
}

.servicio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

/* Efecto hover */
.servicio:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

/* INFO EN LA ESQUINA INFERIOR */
.info-servicio {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 0, 0, 0.8);
    color: #fff;
    display: flex;
    align-items: center;     /* Centra verticalmente icono + texto */
    padding: 10px 15px;
    border-top-right-radius: 15px;
    width: 100%;
    gap: 12px;               /* Espacio entre icono y texto */
}

/* Icono */
.info-servicio i {
    font-size: 1.6rem;
    flex: 0 0 auto;          /* El icono no se deforma */
}

/* TEXTO (título + descripción) */
.texto-servicio {
    flex: 1 1 auto;          /* Ocupa el espacio disponible */
    display: flex;
    flex-direction: column;  /* h3 arriba, p abajo */
    align-items: center;     /* Centrado horizontal */
    justify-content: center; /* Centrado vertical */
    text-align: center;      /* Alineación del texto */
}

/* Título dentro del bloque */
.texto-servicio h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

/* Descripción */
.texto-servicio p {
    font-size: 0.85rem;
    margin: 4px 0 0 0;
    text-align: center;
}

/* =========================== */
/*        PÁGINAS INSTALACIÓN PCI          */
/* =========================== */

.pci-hero {
    background: url('img/44.jpg') center/cover no-repeat;
    height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pci-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    /*background: rgba(0,0,0,0.45);*/
}

.pci-hero-content {
    position: relative;
    text-align: center;
    color: #ffffff;
    animation: fadeUp 1s ease both;
}

.pci-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pci-hero-content p {
    font-size: 1.4rem;
}


/* =========================== */
/*      INTRO                  */
/* =========================== */

.pci-intro {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 4rem 2rem;
    flex-wrap: wrap;
}

.pci-intro-text {
    flex: 1;
}

.pci-intro-text h2 {
    font-size: 2.4rem;
    margin-bottom: 1.3rem;
    line-height: 1.3;
}

.pci-intro-text span {
    color: #ff0000;
    font-weight: 900;
}

.pci-intro-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: justify;
}

.pci-intro-img {
    flex: 1;
    text-align: center;
}

.pci-intro-img img {
    width: 90%;
    border-radius: 1.3rem;
    box-shadow: 0 8px 20px rgba(255,0,0,0.3);
    animation: fadeUp 1s ease both;
}

/* =========================== */
/*      SISTEMAS PCI (IMÁGENES) */
/* =========================== */

.sistemas-pci {
    padding: 4rem 2rem;
}

.titulo-centro {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 2.5rem;
}

.grid-pci {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.tarjeta-pci {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.25);
    transition: transform .3s, box-shadow .3s;
    cursor: pointer;
    animation: aparecer 1s ease forwards;
    opacity: 0;
}

.tarjeta-pci img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

/* Animación hover */
.tarjeta-pci:hover img {
    transform: scale(1.08);
}

.tarjeta-pci:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 0, 0, 0.35);
}

/* Animación de aparición */
@keyframes aparecer {
    0% {opacity: 0; transform: translateY(40px);}
    100% {opacity: 1; transform: translateY(0);}
}



/* ===========================
         CONTACTO
=========================== */

/* ====== SECCIÓN CONTACTO ====== */
#seccion-contacto {
    padding: 25px 40px;
    background-color: #ffffff;
    text-align: center;
}

/* TÍTULO SECCIÓN */
.titulo-seccion {
    font-size: 2.2rem;
    color: #f80000;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
}

/* BARRA ROJA DEBAJO DEL TÍTULO */
.titulo-seccion::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #f80000;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* GRID FORMULARIO + INFO */
.grid-contacto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: start;
}

/* FORMULARIO */
.formulario-contacto {
    width: 100%;
    max-width: 600px;
}

.formulario-contacto form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formulario-contacto label {
    font-weight: 600;
    text-align: left;
}

.formulario-contacto input,
.formulario-contacto textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
}

.formulario-contacto button {
    padding: 12px;
    border-radius: 6px;
    border: none;
    background-color: #ff0000;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.formulario-contacto button:hover {
    background-color: #fff;
    color: #ff0000;
    border: 2px solid #ff0000;
}

/* INFO CONTACTO (NEWSLETTER + 2x2) */
.info-contacto {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* NEWSLETTER */
.newsletter {
    background-color: rgba(255,0,0,0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.newsletter h3 {
    color: #ff0000;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.newsletter p {
    margin-bottom: 15px;
    text-align: center; /* JUSTIFICAR SOLO EL TEXTO */
}

.form-newsletter input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 80%;
    margin-bottom: 10px;
}

.form-newsletter button {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    background-color: #ff0000;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-newsletter button:hover {
    background-color: #fff;
    color: #ff0000;
    border: 2px solid #ff0000;
}

/* 2x2 INFORMACIÓN */
.info-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 100%;       /* no sobrepasa el contenedor padre */
    padding: 0 20px;       /* margen interno a los lados */
    box-sizing: border-box;
    justify-content: center; /* centra los bloques dentro del contenedor */
}

.info-2x2 .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    max-width: 100%;
    overflow-wrap: break-word; /* evita que textos largos sobresalgan */
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    /*background-color: rgba(255,0,0,0.05);*/
    padding: 10px;
    border-radius: 8px;
}

/* Contenedor de texto dentro de cada info-item */
.info-texto {
    text-align: left; /* ⬅️ Alinear a la izquierda */
}

.info-texto h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.info-texto p {
    margin: 2px 0 0 0;
    font-size: 0.9rem;
    color: #333;
}

.info-texto p a {
    color: inherit;        /* Usa el mismo color del texto normal */
    text-decoration: none; /* Quita el subrayado */
    font-weight: 400;      /* Peso normal (sin negrita) */
    transition: color 0.3s ease;
}

.info-texto p a:hover {
    color: #ff0000;        /* Color rojo al pasar el ratón */
}

/* ICONOS INFO */
.info-item i {
    color: #ff0000;
    font-size: 1.8rem;
}

/* MAPA */
.mapa-contacto {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 50px auto;
    border-radius: 12px;
    overflow: hidden;
}

.mapa-contacto iframe {
    border: none;
    border-radius: 12px;
}

/* Siguenos - Contacto*/
.seguinos {
    text-align: center;
}

.seguinos h3 {
    color: #ff0000;
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
}

/* Barra roja debajo del título
.seguinos h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #ff0000;
    margin: 8px auto 0 auto;
    border-radius: 2px;
}*/

/* Contenedor de redes */
.redes-contacto {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Iconos circulares */
.red-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f80000;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.red-social:hover {
    background-color: #fff;
    color: #f80000;
    border: 2px solid #f80000;
}


/* ==========================
   RESPONSIVE CONTACTO - Newsletter centrado
========================== */
@media (max-width: 768px) {

    /* Contenedor principal de contacto */
    .contacto-contenido {
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Formulario y newsletter/info-2x2 */
    .formulario-newsletter {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* Formulario ocupa todo el ancho */
    .formulario-newsletter form,
    .info-2x2 {
        width: 100%;
        max-width: 500px; /* límite para no crecer demasiado */
        margin-bottom: 20px;
    }

    /* Newsletter centrado */
    .newsletter {
        width: 100%;
        max-width: 500px;
        text-align: center; /* centra título y párrafo */
        margin: 0 auto 20px auto;
    }

    /* Centrar input y botón dentro del newsletter */
    .newsletter .form-newsletter {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .newsletter input {
        width: 80%;
        max-width: 400px;
    }

    .newsletter button {
        align-self: center;
    }

    /* Grid 2x2 se mantiene, solo se reduce tamaño */
    .info-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 400px; /* limita el ancho total del grid */
    margin: 0 auto;   /* centra el grid */
    padding: 0;       /* elimina padding lateral para que no afecte el centrado */
    box-sizing: border-box;
    }

    .info-2x2 .info-item {
        padding: 8px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    /* Mapas centrados y adaptables */
    .mapa-contacto {
        width: 100%;
        max-width: 600px;
        height: 300px;
        margin: 0 auto;
    }
}

/* ===========================
        PROYECTOS
=========================== */

/* Contenedor general */
.proyectos {
    padding: 1rem 2rem;
    background: #ffffff;
}

/* Galería en grid */
.proyectos-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Tarjeta del proyecto */
.proyecto {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.2);
    animation: fadeUp 1s ease;
    background: #000; /* Previene flashes blancos en imágenes sin cubrir */
}

/* Imágenes */
.proyecto img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;              /* <-- SOLUCIÓN DEFINITIVA PARA LA LÍNEA BLANCA */
    transition: transform 0.4s ease;
}

/* Hover */
.proyecto:hover img {
    transform: scale(1.08);
}

/* Animación */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ===========================
         NOSOTROS
=========================== */
/* ESTILO GENERAL */
.t-header {
    text-align: center;
    padding: 1rem 2rem;
}

.t-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff0000;
    animation: fadeDown 0.8s ease-in-out;
}

.t-header p {
    font-size: 1.3rem;
    max-width: 1000px;
    margin: 1rem auto;
    opacity: 0;
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
}

/* SECCIONES */
.about-section {
    display: flex;
    gap: 3rem;
    align-items: center;
    padding: 2rem 2rem;
    flex-wrap: wrap;
}

.about-section.reverse {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text h2 span {
    color: #ff0000;
    font-weight: 900;
}

.about-text p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 1.1rem; /* reducido */
    text-align: justify; /* justificado */
}

/* ICON LIST */
.icon-list li {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.icon-list i {
    color: #ff0000;
    font-size: 1.6rem;
}

/* IMÁGENES */
.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.9s ease forwards;
}

/* CONTENEDOR DEL TIMELINE */
.evolucion-empresa {
    padding: 2rem 2rem;
    text-align: center;
}

.evolucion-empresa h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.evolucion-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.evolucion-item {
    flex: 1;
    min-width: 220px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(255,0,0,0.2);
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.evolucion-item img {
    width: 100%;
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.evolucion-item img:hover {
    transform: scale(1.05);
}

.evolucion-item h3 {
    font-size: 1.5rem;
    color: #ff0000;
    margin-bottom: 0.5rem;
}

.evolucion-item p {
    font-size: 1.1rem; /* reducido */
    line-height: 1.5;
    color: #333;
    /*text-align: justify; justificado */
}

/* Hover general de la tarjeta */
.evolucion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255,0,0,0.3);
}

/* ===========================
      RESPONSIVE
=========================== */
@media (max-width: 768px) {

    /* Hacer que cada sección sea vertical */
    .about-section {
        flex-direction: column !important;
        text-align: center;
    }

    /* Centrar texto */
    .about-text {
        text-align: justify; /* Puedes cambiarlo a justify si lo prefieres */
    }

    /* Centrar la imagen */
    .about-img {
        order: 2; /* La imagen siempre irá después del texto */
        display: flex;
        justify-content: center;
    }

    .about-img img {
        width: 100%;
        max-width: 420px; /* Para que no se haga demasiado grande */
    }
}

/* ================================
   PERSONAL TÉCNICO CUALIFICADO
================================ */

.tecnico-section {
    padding: 12rem 2rem;
    text-align: center;
    background: #ffffff;
}

.subtitulo-tecnico {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fade 1s ease forwards 0.3s;
}

/* GRID */
.tecnico-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* TARJETAS */
.tecnico-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1.3rem;
    box-shadow: 0 8px 25px rgba(248, 0, 0, 0.18);
    transition: 0.4s;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards;
}

.tecnico-card:nth-child(odd) {
    animation-delay: 0.2s;
}
.tecnico-card:nth-child(even) {
    animation-delay: 0.4s;
}

.tecnico-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 35px rgba(248, 0, 0, 0.35);
}

/* IMÁGENES */
.tecnico-img {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.tecnico-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.tecnico-card:hover img {
    transform: scale(1.1);
}

.cargo {
    color: #f80000;
    font-weight: 600;
    margin-top: 0.3rem;
}

/* =====================
        ANIMACIONES
===================== */

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade {
    to {
        opacity: 1;
    }
}

@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===========================
         FOOTER
=========================== */

.pie {
  background: #1a1a1a;
  color: #ccc;
  padding: 3rem 1rem;
  font-family: "Poppins", sans-serif;
}

.contenedor-pie {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.columna-pie {
  flex: 1 1 220px;
  min-width: 200px;
}

.columna-pie h4 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #c62828;
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.columna-pie p,
.columna-pie ul li {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.columna-pie ul {
  list-style: none;
  padding: 0;
}

.columna-pie ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.columna-pie ul li i {
  color: #c62828;
}

.columna-pie ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.columna-pie ul li a:hover {
  color: #fff;
}

.email-footer {
    /*font-size: 0.9rem;  un poco más pequeño */
    word-break: break-all; /* evita que se salga del contenedor */
    color: #ccc;
    text-decoration: none;
}

.email-footer:hover {
    color: #fff;
}

.redes-pie a {
  color: #ffffff;
  font-size: 1.2rem;
  margin-right: 0.6rem;
  transition: color 0.3s, transform 0.3s;
}

.redes-pie a:hover {
  color: #c62828;
  transform: scale(1.2);
}

.pie-inferior {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 1rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #aaa;
}

@media (max-width: 992px) {
  .contenedor-pie {
    flex-direction: column;
    align-items: flex-start;
  }
  .columna-pie {
    width: 100%;
  }
}

/* ===========================
   PÁGINA EN CONSTRUCCIÓN
=========================== */

.construccion {
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.construccion-contenido {
    max-width: 600px;
    animation: fadeIn 1s ease forwards;
}

/* Icono grande */
.construccion .icono i {
    font-size: 5rem;
    color: #f80000;
    margin-bottom: 1rem;
    animation: iconBounce 2s infinite ease-in-out;
}

/* Título */
.construccion h2 {
    font-size: 2.5rem;
    color: #f80000;
    margin-bottom: 1rem;
    font-weight: 800;
    animation: fadeDown 1s ease forwards;
}

/* Texto */
.construccion p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    animation: fadeUp 1.2s ease forwards;
}

/* Loader animado */
.loader {
    width: 60px;
    height: 60px;
    border: 6px solid #ddd;
    border-top-color: #f80000;
    border-radius: 50%;
    margin: 0 auto;
    animation: girar 1s linear infinite;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes girar {
    to { transform: rotate(360deg); }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
