/* --- RESET GENERAL Y VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b00; /* Naranja industrial premium */
    --primary-hover: #e05e00;
    --dark-color: #111111;    /* Negro profundo de alto impacto */
    --light-color: #f8fafc;   /* Gris nítido de fondo */
    --white: #ffffff;
    --text-muted: #555555;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition-smooth: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    background-color: var(--white);
    line-height: 1.6;
}

/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 8%;
    background-color: rgba(17, 17, 17, 0.98);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: 1.5px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 28px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links .btn-nav {
    background-color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.nav-links .btn-nav:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* --- SECCIÓN HERO --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.75)), 
                url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?q=80&w=1920') no-repeat center center/cover;
    display: flex;
    align-items: center;
    padding: 0 8%;
    color: var(--white);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -1.5px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 780px;
    margin-bottom: 40px;
    color: #e2e8f0;
    font-weight: 300;
    text-align: justify;
}

.btn-main {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 18px 40px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.35);
    transition: var(--transition-smooth);
}

.btn-main:hover {
    background-color: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.55);
}

/* --- SECCIÓN SERVICIOS CON TARJETAS REVELADORAS --- */
.services {
    padding: 120px 8%;
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--dark-color);
}

.section-title .line {
    width: 90px;
    height: 5px;
    background-color: var(--primary-color);
    margin: 15px auto;
    border-radius: 3px;
}

.section-title .subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px;
}

.card {
    background-color: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 480px; /* Altura óptima para desplegar la información extendida */
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

/* Capa Oscura Interactiva */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(17, 17, 17, 0.45), rgba(17, 17, 17, 0.98));
    display: flex;
    align-items: center;
    padding: 30px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.info-content {
    transform: translateY(40px);
    transition: var(--transition-smooth);
    color: var(--white);
    width: 100%;
}

.info-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--white);
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.info-content p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

/* Caja Interna de Especificaciones Técnicas */
.specs-box {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.specs-box h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.specs-box ul {
    list-style: none;
}

.specs-box ul li {
    font-size: 0.8rem;
    color: #e2e8f0;
    margin-bottom: 5px;
}

.specs-box ul li strong {
    color: var(--white);
}

.btn-card {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-card:hover {
    background-color: var(--white);
    color: var(--dark-color);
}

/* Efectos Hover */
.card:hover .card-img {
    transform: scale(1.1);
}

.card:hover .card-overlay {
    opacity: 1;
}

.card:hover .info-content {
    transform: translateY(0);
}

.card-footer-title {
    padding: 22px 25px;
    display: flex;
    align-items: center;
    background-color: var(--white);
}

.card-footer-title .icon {
    font-size: 1.6rem;
    margin-right: 12px;
}

.card-footer-title h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark-color);
}

/* --- SECCIÓN TESTIMONIAL --- */
.testimonial-section {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 90px 8%;
    text-align: center;
}

.testimonial-container {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-text {
    font-size: 1.45rem;
    font-style: italic;
    font-weight: 300;
    color: #e2e8f0;
    margin-bottom: 25px;
    line-height: 1.7;
}

.testimonial-author {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SECCIÓN PREGUNTAS FRECUENTES --- */
.faqs-section {
    padding: 100px 8%;
    background-color: var(--white);
}

.faqs-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--light-color);
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

.faq-item summary {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    outline: none;
    color: var(--dark-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    text-align: justify;
}

/* --- SECCIÓN CONTACTO --- */
.contacto-section {
    padding: 100px 8%;
    background-color: var(--light-color);
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
    max-width: 1050px;
    margin: 0 auto;
}

.contacto-info h3, .contacto-canales h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 22px;
    text-transform: uppercase;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.contacto-info h3:not(:first-child) {
    margin-top: 40px;
}

.address {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.schedule {
    list-style: none;
}

.schedule li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.schedule li span {
    font-weight: 600;
    color: var(--dark-color);
}

.canal-link {
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.canal-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.canal-link a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.socials-container {
    margin-top: 40px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    color: var(--white);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.social-icon.tiktok {
    background-color: #000000;
}

.social-icon.telegram {
    background-color: #0088cc;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- PIE DE PÁGINA --- */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 70px 8% 40px;
    text-align: center;
}

.footer-content {
    max-width: 850px;
    margin: 0 auto;
}

.motivation-phrase {
    font-style: italic;
    font-size: 1.35rem;
    color: #e2e8f0;
    margin-bottom: 35px;
    font-weight: 300;
}

.footer-line {
    width: 100%;
    height: 1px;
    background-color: #262626;
    margin-bottom: 35px;
}

.copyright {
    font-size: 0.85rem;
    color: #64748b;
}

/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: var(--transition-smooth);
}

.whatsapp-icon {
    width: 38px;
    height: 38px;
    fill: currentColor;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
    .card-image-wrapper {
        height: auto;
    }
    .card-overlay {
        position: relative;
        opacity: 1;
        background: linear-gradient(180deg, rgba(17,17,17,0.85) 0%, rgba(17,17,17,0.98) 100%);
        padding: 25px;
    }
    .info-content {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-links a:not(.btn-nav) {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .services, .contacto-section, .faqs-section {
        padding: 80px 5%;
    }
}

/* ==================================================================
   FORMULARIO DE COTIZACION  (agregado por el Capataz el 14-oct-2026)
   Usa los mismos colores de la web (naranja industrial + negro)
   ================================================================== */
.cotizar-section {
    padding: 90px 8%;
    background-color: var(--light-color);
}

.cotizar-form {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 14px;
    padding: 42px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
    border-top: 6px solid var(--primary-color);
}

.form-row {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark-color);
    background: var(--white);
    transition: var(--transition-smooth);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.btn-form {
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1.05rem;
    margin-top: 6px;
}

.form-aviso {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
}

@media (max-width: 700px) {
    .cotizar-section { padding: 60px 6%; }
    .cotizar-form { padding: 26px 18px; }
    .form-row { gap: 0; }
}


/* ===== BOTONES DE FACEBOOK E INSTAGRAM (agregado 15-oct-2026) ===== */
.social-icon.facebook { background-color: #1877F2; color: #fff; }
.social-icon.facebook:hover { background-color: #0f5fc4; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.social-icon.instagram:hover { filter: brightness(1.1); }


/* ===== GALERIA DE TRABAJOS REALES (agregado 15-oct-2026) ===== */
.galeria-section { padding: 70px 20px; background: #ffffff; }
.galeria-section h2 { text-align: center; font-size: 2rem; margin-bottom: 12px; color: #0f172a; }
.galeria-intro { text-align: center; max-width: 720px; margin: 0 auto 36px; color: #475569; line-height: 1.6; }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.galeria-grid img { width: 100%; height: 230px; object-fit: cover; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .12); transition: transform .25s ease, box-shadow .25s ease; }
.galeria-grid img:hover { transform: scale(1.03); box-shadow: 0 10px 24px rgba(15, 23, 42, .22); }
@media (max-width: 600px) { .galeria-grid img { height: 190px; } .galeria-section h2 { font-size: 1.6rem; } }
