@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ================== VARIABLES ================== */
:root {
    --color-primary: #E30613;
    --color-secondary: #4A4A4A;
    --color-white: #FFFFFF;
    --dark-bg: #0b0b0b;
    --light-bg: #f4f7fa;
}

/* ================== BASE ================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    color: var(--color-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* FIX GLOBAL IMÁGENES */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

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

.bg-light {
    background: var(--light-bg);
}

.bg-dark {
    background: var(--dark-bg);
    color: var(--color-white);
}

/* ================== TIPOGRAFÍA ================== */
h1, h2, h3, h4, h5, h6, .logo {
    font-weight: 800;
    color: var(--color-primary);
}

.sub-title {
    color: var(--color-secondary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

/* ================== BOTONES ================== */
.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s ease;
    border-radius: 10px;
    border: none;
}

.btn-primary:hover {
    background: #b90510;
    transform: translateY(-3px);
}

/* ================== HEADER ================== */
header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

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

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-secondary);
}

/* ================== HERO ================== */
.hero {
    background: #f9fbff;
    padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-img-box img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

/* ================== ABOUT ================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* ================== SERVICES ================== */
.services-grid-cargon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-item-box {
    background: var(--color-white);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 10px;
}

/* ================== PORTFOLIO ================== */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    grid-auto-rows: 300px;
}

.masonry-item {
    overflow: hidden;
    border-radius: 18px;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.masonry-item.tall {
    grid-row: span 2;
}

.masonry-item.wide {
    grid-column: span 2;
}

/* ================== VIDEO + STATS ================== */
.video-cta {
    background-image: url("img/video-cta.jpeg");
    height: 500px;
    background-position: center;
    background-size: cover;
    position: relative;
}

.stats-bar {
    position: absolute;
    bottom: -50px;
    width: 100%;
}

.stats-flex {
    background: var(--color-primary);
    padding: 40px;
    display: flex;
    justify-content: space-around;
    color: var(--color-white);
    border-radius: 10px;
    gap: 20px;
}

/* ================== WORKING PROCESS ================== */
.working-process-dark {
    background: var(--dark-bg);
    padding: 120px 0;
    color: var(--color-white);
}

/* ================== CONTACT ================== */
.contact-container{
    display:flex;
    gap:60px;
}

.contact-form{
    flex:2;
}

.contact-info{
    flex:1;
}
/* CONTENEDOR GENERAL */
.contact-container{
    display:flex;
    justify-content:space-between;
    gap:60px;
}

/* TITULOS */
.contact-form h5{
    color:#777;
    letter-spacing:2px;
    font-size:14px;
}

.contact-form h2{
    color:#e30613;
    font-size:32px;
    margin-bottom:20px;
}

/* FILA INPUTS */
.form-row{
    display:flex;
    gap:20px;
    margin-bottom:20px;
}

/* INPUTS */
.form-row input{
    width:100%;
    padding:14px 16px;
    border-radius:10px;
    border:1px solid #ddd;
    background:#f6f6f6;
    font-size:14px;
}

/* TEXTAREA */
textarea{
    width:100%;
    padding:14px 16px;
    border-radius:10px;
    border:1px solid #ddd;
    background:#f6f6f6;
    min-height:120px;
    resize:none;
    margin-bottom:20px;
}

/* BOTON */
.contact-form button{
    width:100%;
    padding:16px;
    background:#ff0000;
    border:none;
    color:#fff;
    font-weight:bold;
    border-radius:14px;
    cursor:pointer;
    transition:0.3s;
}

.contact-form button:hover{
    background:#cc0000;
}

/* COLUMNA DERECHA */
.contact-info{
    max-width:280px;
}

.contact-info h3{
    color:#e30613;
    margin-bottom:5px;
}

.contact-info p{
    color:#4a5a6a;
    margin-bottom:25px;
}

/* RESPONSIVE */
@media (max-width:768px){

.contact-container{
flex-direction:column;
}

.form-row{
flex-direction:column;
}

.contact-info{
max-width:100%;
}

}
.form-row{
    display:flex;
    gap:20px;
    margin-bottom:20px;
}

.form-row input{
    width:100%;
}

textarea{
    width:100%;
    margin-bottom:20px;
}
/* ================== FOOTER ================== */
.footer-final {
    background: #f4f7fa;
    padding: 80px 0 20px;
}

/* ================== WHATSAPP ================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: var(--color-white);
    padding: 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    z-index: 1001;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid-cargon {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 60px 0;
    }

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

    .hero-img-box img {
        height: 350px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
    }

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

@media (max-width: 768px) {

    .section {
        padding: 70px 0;
    }

    .stats-bar {
        position: relative;
        bottom: 0;
        margin-top: -30px;
    }

    .stats-flex {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }
}

@media (max-width: 576px) {

    .section {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-img-box img {
        height: 250px;
    }

    .about-images {
        grid-template-columns: 1fr;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .stats-flex {
        padding: 25px;
    }

    .services-grid-cargon {
        grid-template-columns: 1fr;
    }

    .form-simple .form-row {
        grid-template-columns: 1fr;
    }

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