/* 
   --------------------------------------------------------------------------
   INSACOL MODERN PREMIUM THEME
   --------------------------------------------------------------------------
*/

:root {
    /* Colors */
    --primary-color: #FFC107;
    /* Industrial Safety Yellow (Amber 500) */
    --primary-dark: #FFB300;
    /* Darker Amber */
    --secondary-color: #111111;
    /* Deep Black */
    --accent-color: #E2E8F0;
    /* Slate 200 */
    --text-color: #334155;
    /* Slate 700 */
    --text-light: #64748B;
    /* Slate 500 */
    --bg-color: #F8FAFC;
    /* Slate 50 */
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 5rem 0;
    --container-width: 1200px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Components */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    /* Black text on yellow */
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.insta-link {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.insta-link:hover {
    color: #E1306C !important;
    /* Instagram Brand Color */
    background-color: transparent !important;
    transform: scale(1.2);
}

.fb-link {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.fb-link:hover {
    color: #1877F2 !important;
    /* Facebook Brand Color */
    background-color: transparent !important;
    transform: scale(1.2);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    background-color: var(--primary-color);
}


.nav-link:hover {
    color: var(--primary-dark);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('img/hero_new.png') no-repeat center center/cover;
    color: var(--white);
    margin-top: 0;
}

body {
    padding-top: 80px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 .highlight {
    color: var(--primary-color);
    text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--accent-color);
}

/* Section Components */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.blend-multiply {
    mix-blend-mode: multiply;
}

.card-image {
    height: 220px;
    overflow: hidden;
    background-color: #f1f5f9;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

/* Utility to scale up small images */
.img-large {
    transform: scale(1.4);
}

.service-card:hover .card-image .img-large {
    transform: scale(1.5);
}

.card-content {
    padding: 2rem;
    position: relative;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    /* Black icon on yellow */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    top: -25px;
    right: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Float Buttons */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    background-color: #20b857;
    color: #fff;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.contact-info .section-header {
    margin-bottom: 2rem;
}

.text-left {
    text-align: left;
}

.text-left h2::after {
    margin: 0.5rem 0 0;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: #FFFBEB;
    /* Very light yellow for icons context */
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-list strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
}

.contact-list a,
.contact-list p {
    color: var(--text-light);
}

.contact-list a:hover {
    color: var(--primary-color);
}

.contact-map {
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Contact Form Styles */
.contact-form-container {
    padding: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.form-group textarea {
    resize: vertical;
}

/* Map Section */
.map-section iframe {
    transition: transform 0.3s ease;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Gallery Section */
/* Gallery Layouts */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Clients Section (Horizontal Bar) */
.clients-bar-section {
    background-color: #F1F5F9;
    /* Slate 100 - Distinct from white but subtle */
    padding: 2.5rem 0;
    border-top: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

.clients-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-color);
    text-align: center;
}

.client-name {
    font-weight: 600;
    color: var(--secondary-color);
    white-space: nowrap;
}

.separator {
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .clients-wrapper {
        gap: 1rem;
        font-size: 1rem;
    }
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn-secondary {
    margin-left: 0;
}

.footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

/* =========================================
   GALERÍA DE PROYECTOS (Estilos Globales)
   ========================================= */

/* Esto define la cuadrícula de 3 columnas para PC */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columnas iguales */
    gap: 1.5rem;
    /* Espacio entre fotos */
    margin-bottom: 2rem;
}

.gallery-item {
    height: 300px;
    /* Altura fija para que todas se vean iguales */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* CRUCIAL: Recorta la imagen para llenar el cuadro sin deformarse */
    transition: transform 0.5s ease;
}

/* Efecto Hover: Zoom suave */
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.05);
}


/* =========================================
   RESPONSIVE (Adaptación a Móviles)
   ========================================= */

/* Para Tablets y Laptops pequeñas (menos de 992px) */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Cambia a 2 columnas */
    }
}

/* Para Celulares (menos de 600px) */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        /* Cambia a 1 columna */
        gap: 1rem;
    }

    .gallery-item {
        height: 250px;
        /* Un poco más bajitas en celular */
    }
}
}