/* ================= RESET GENERAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7fb;
    color: #1f2937;
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

/* ================= CONTENEDOR ================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ================= HEADER ================= */
.header {
    background: #0f172a;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.logo {
    width: 105px;
    height: auto;
    object-fit: contain;
}

.nav a {
    color: #ffffff;
    margin-left: 18px;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav a:hover {
    color: #38bdf8;
}

/* ================= HERO ================= */
.hero {
    position: relative;
    min-height: 100vh;
    background: url("../img/hero-industrial.png") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #fff;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: 18px;
}

.hero-content p {
    margin-bottom: 28px;
}

/* ================= BOTONES ================= */
.btn-primary {
    padding: 14px 28px;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-weight: bold;
}

.btn-secondary {
    padding: 12px 20px;
    background: #0f172a;
    color: white;
}

/* ================= PRODUCTOS ================= */
.productos {
    padding: 80px 0;
}

.productos h2,
.proyectos h2,
.nosotros h2,
.testimonios h2,
.contacto h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 35px;
    color: #0f172a;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
}

.card img {
    height: 230px;
    object-fit: cover;
}

.card h3 {
    padding: 15px;
}

.card p {
    padding: 0 15px;
}

.card span {
    padding: 15px;
    display: block;
}

/* ================= PROYECTOS ================= */
.proyectos {
    padding: 80px 0;
}

.grid-proyectos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.proyecto-card {
    background: #1e293b;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.3s;
}

.proyecto-card:hover {
    transform: translateY(-6px);
}

.proyecto-card img {
    height: 220px;
    object-fit: cover;
}

.proyecto-card h3 {
    color: #38bdf8;
    padding: 15px;
}

.proyecto-card p {
    padding: 0 15px 20px;
    color: #e2e8f0;
}

/* ================= NOSOTROS ================= */
.nosotros {
    background: #0f172a;
    color: #ffffff;
    padding: 90px 0;
}

.nosotros h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 55px;
    color: #ffffff;
}

.nosotros > .container > p {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto 60px;
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.7;
}

.valores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
}

.card-info {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 50px 45px;
    min-height: 360px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card-info h3 {
    color: #38bdf8;
    font-size: 2rem;
    margin-bottom: 35px;
}

.card-info p {
    color: #e2e8f0;
    font-size: 1.15rem;
    line-height: 1.7;
}

.card-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-info ul li {
    color: #e2e8f0;
    font-size: 1.12rem;
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    padding-left: 42px;
    text-align: center;
}

.card-info ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #38bdf8;
    font-weight: 700;
    font-size: 1.3rem;
}

@media (max-width: 900px) {
    .valores {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .card-info {
        min-height: auto;
        padding: 35px 25px;
    }

    .nosotros h2 {
        font-size: 2.2rem;
    }
}
/* ================= TESTIMONIOS ================= */
.testimonios {
    padding: 80px 0;
    background: #ffffff;
}

.grid-testimonios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

blockquote {
    background: #f1f5f9;
    padding: 30px;
    border-left: 5px solid #2563eb;
    border-radius: 10px;
    font-style: italic;
}

blockquote span {
    display: block;
    margin-top: 15px;
    font-weight: 700;
    color: #0f172a;
}

/* ================= CONTACTO ================= */
.contacto {
    padding: 80px 0;
}

form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

form input,
form textarea {
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
}

/* Textarea más alto */
form textarea {
    min-height: 140px;
    resize: none;
}

.whatsapp-btn {
    display: block;
    text-align: center;
    background: #22c55e;
    color: white;
    padding: 12px;
    margin-top: 20px;
}

/* ================= MAPA ================= */
iframe {
    width: 100%;
    height: 350px;
    border: none;
    border-radius: 12px;
    margin-top: 30px;
}

/* ================= WHATSAPP FLOAT ================= */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ================= FOOTER ================= */
.footer {
    background: #020617;
    color: white;
    text-align: center;
    padding: 30px;
}

.footer .social {
    margin: 15px 0;
}

.footer a {
    color:#38bdf8;
    text-decoration: none;
}

.footer a:hover {
    color: #ffffff;
}

/* ================= ANIMACIONES ================= */
.card,
.valores div,
blockquote {
    opacity: 0;
    transform: translateY(25px);
}

.card.mostrar,
.valores div.mostrar,
blockquote.mostrar {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .grid-productos,
    .grid-proyectos,
    .valores {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .header .container {
        flex-direction: column;
        height: auto;
        gap: 6px;
    }

    .logo {
        width: 90px;
    }

    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav a {
        margin: 0;
        font-size: 0.85rem;
    }

    .grid-testimonios {
        grid-template-columns: 1fr;
    }

    iframe {
        height: 300px;
    }
}

/* ================= FILTROS PRODUCTOS ================= */
.filtros {
    text-align: center;
    margin-bottom: 40px;
}

.filtros button {
    padding: 10px 18px;
    margin: 6px;
    border: none;
    border-radius: 6px;
    background: #e2e8f0;
    color: #0f172a;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.filtros button:hover {
    background: #2563eb;
    color: #ffffff;
}

/* ================= AJUSTE TARJETAS PRODUCTOS ================= */
.card h3 {
    font-size: 1.3rem;
    padding: 20px 20px 5px;
    color: #0f172a;
}

.card p {
    padding: 0 20px;
    color: #475569;
}

.card span {
    display: block;
    padding: 15px 20px 5px;
    font-weight: 700;
    color: #2563eb;
    font-size: 1.1rem;
}

.card .btn-secondary {
    margin: 15px 20px 25px;
    border-radius: 8px;
}

/* ================= TARJETAS PRODUCTO PRO ================= */

.card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
}

/* Imagen */
.card img {
    height: 230px;
    object-fit: cover;
}

/* Título */
.card h3 {
    font-size: 1.35rem;
    padding: 20px 20px 10px;
    color: #0f172a;
    line-height: 1.3;
}

/* Lista de características */
.lista-producto {
    padding: 0 25px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.lista-producto li {
    margin-bottom: 8px;
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Precio negociable */
.card em {
    display: block;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 0.95rem;
    font-style: italic;
}

/* Precio */
.card span {
    display: block;
    padding: 10px 20px 5px;
    font-weight: 700;
    color: #2563eb;
    font-size: 1.25rem;
}

/* Botón */
.card .btn-secondary {
    margin: 20px;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    font-weight: 700;
}