/* =========================================================
   ALUTOLDOS RAULE - ESTILOS GENERALES
   ========================================================= */

/* ---------- Variables ---------- */
:root {
    --color-primary: #f5821f;      /* naranja corporativo */
    --color-dark: #1a1a1a;         /* negro / fondos oscuros */
    --color-dark-soft: #2b2b2b;    /* negro mas suave */
    --color-text: #333333;         /* texto principal */
    --color-text-light: #6e6e6e;   /* texto secundario / gris */
    --color-bg-light: #f7f7f7;     /* fondo gris claro */
    --color-border: #e6e6e6;       /* lineas / bordes */
    --font-main: 'Poppins', sans-serif;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

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

/* Bloquea el scroll del fondo cuando el menu movil esta abierto */
body.no-scroll {
    overflow: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn--primary:hover {
    background-color: #d96f12;
}

.btn--outline {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn--outline:hover {
    background-color: #fff;
    color: var(--color-dark);
}

.btn--dark {
    background-color: var(--color-dark);
    color: #fff;
}

.btn--dark:hover {
    background-color: var(--color-primary);
}

/* ---------- Cabeceras de seccion (titulo + linea naranja) ---------- */
.section__header {
    text-align: center;
    margin-bottom: 50px;
}

.section__pretitle {
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.section__title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-dark);
    max-width: 750px;
    margin: 0 auto;
}

.section__divider {
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 18px auto 0;
}


/* =========================================================
   TOP BAR (telefono / email / redes sociales)
   ========================================================= */
.topbar {
    background-color: var(--color-dark);
    color: #fff;
    font-size: 0.8rem;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
}

.topbar__contact {
    display: flex;
    gap: 25px;
}

.topbar__contact a:hover,
.topbar__social a:hover {
    color: var(--color-primary);
}

.topbar__contact i {
    color: var(--color-primary);
    margin-right: 5px;
}

.topbar__social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar__social a {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}


/* =========================================================
   NAVBAR (logo + menu + boton presupuesto)
   ========================================================= */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.navbar__logo img {
    height: 55px;
}

/* Menu principal (solo el primer nivel, no afecta al .dropdown) */
.navbar__menu > ul {
    display: flex;
    align-items: center;
    gap: 22px;
}

.navbar__menu a {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-text);
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.navbar__menu a:hover,
.navbar__menu a.active {
    color: var(--color-primary);
}

.navbar__menu a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

/* Dropdown "MAS" */
.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    border-radius: 4px;
    padding: 10px 0;
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
}

.dropdown li a:hover {
    background-color: var(--color-bg-light);
}

/* Boton de presupuesto en navbar */
.navbar__btn {
    flex-shrink: 0;
}

/* Boton "X" para cerrar el menu movil (oculto salvo cuando el menu esta abierto) */
.navbar__close {
    display: none;
}

/* Boton hamburguesa (oculto en escritorio) */
.navbar__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-dark);
    cursor: pointer;
}


/* =========================================================
   HERO (imagen de fondo + texto + botones)
   ========================================================= */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(90deg, rgba(0,0,0,0.75) 30%, rgba(0,0,0,0.25) 100%), url('../img/hero.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 60px 0;
}

.hero__content {
    max-width: 620px;
}

.hero__subtitle {
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.hero__title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero__text {
    font-size: 1rem;
    color: #e0e0e0;
    max-width: 520px;
    margin-bottom: 35px;
}

/* 4 columnas con icono + texto */
.hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 130px;
    padding-left: 18px;
    border-left: 2px solid rgba(255, 255, 255, 0.25);
}

.hero__feature:first-child {
    padding-left: 0;
    border-left: none;
}

.hero__feature i {
    font-size: 1.4rem;
    color: var(--color-primary);
}

.hero__feature span {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Botones del hero */
.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


/* =========================================================
   SERVICIOS (4 columnas x 2 filas)
   ========================================================= */
.servicios {
    padding: 90px 0;
    background-color: #fff;
}

.servicios__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.servicio-card {
    background-color: var(--color-bg-light);
    border-radius: 8px;
    overflow: hidden;
    padding: 25px 25px 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.servicio-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
    min-height: 48px;
}

.servicio-card ul {
    margin-bottom: 20px;
    flex-grow: 1;
}

.servicio-card li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.servicio-card li i {
    color: var(--color-primary);
    margin-top: 4px;
    font-size: 0.7rem;
}

.servicio-card img {
    width: calc(100% + 50px);
    max-width: calc(100% + 50px); /* el reset global pone max-width:100%, lo anulamos */
    margin-left: -25px;
    height: 160px;
    object-fit: cover;
}


/* =========================================================
   PROCESO / DISEÑO (50% negro - 50% imagen)
   ========================================================= */
.proceso {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--color-dark);
}

.proceso__left,
.proceso__right {
    flex: 1 1 50%;
    min-width: 320px;
}

.proceso__left {
    display: flex;
    align-items: center;
    padding: 70px 60px;
}

.proceso__content {
    max-width: 560px;
    margin-left: auto;
}

.proceso__pretitle {
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.proceso__title {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
}

/* Fila de 5 columnas: icono + titulo (todo en una sola fila) */
.proceso__steps {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
}

.proceso__step {
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
}

.proceso__step i {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: block;
}

.proceso__step span {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.35;
}

/* Imagen derecha con forma negra superpuesta */
.proceso__right {
    position: relative;
    overflow: hidden;
}

.proceso__right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 100%;
}

/* Forma negra puntiaguda que separa las dos zonas */
.proceso__right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    height: 100%;
    width: 90px;
    background-color: var(--color-dark);
    clip-path: polygon(0 0, 100% 0, 0 50%, 100% 100%, 0 100%);
    z-index: 2;
}


/* =========================================================
   ESTADISTICAS (titulo + 4 columnas con strong)
   ========================================================= */
.estadisticas {
    padding: 80px 0;
    background-color: var(--color-bg-light);
}

.estadisticas__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.estadistica i {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

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

.estadistica strong {
    display: block;
    font-size: 1.6rem;
    color: var(--color-dark);
    font-weight: 700;
}


/* =========================================================
   PROYECTOS (titulo + 5 imagenes + boton)
   ========================================================= */
.proyectos {
    padding: 90px 0 60px;
    background-color: #fff;
}

.proyectos__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 45px;
}

.proyectos__item {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.proyectos__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.proyectos__item:hover img {
    transform: scale(1.08);
}

.proyectos__action {
    text-align: center;
    margin-bottom: 60px;
}

/* Linea separadora gris al final de la seccion */
.separador {
    border: none;
    border-top: 1px solid var(--color-border);
    max-width: var(--container-width);
    margin: 0 auto;
}


/* =========================================================
   TESTIMONIOS (3 opiniones con estrellas)
   ========================================================= */
.testimonios {
    padding: 80px 0 100px;
    background-color: #fff;
}

.testimonios__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonio {
    background-color: var(--color-bg-light);
    border-radius: 8px;
    padding: 30px;
    text-align: left;
}

.testimonio__stars {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.testimonio__stars i {
    margin-right: 2px;
}

.testimonio__text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 18px;
}

.testimonio__author {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 0.9rem;
}


/* =========================================================
   FOOTER (fondo negro, 4 columnas)
   ========================================================= */
.footer {
    background-color: var(--color-dark);
    color: #cccccc;
    padding: 70px 0 30px;
}

.footer__grid {
    display: grid;
    gap: 2rem;
}

.footer--cols-3 .footer__grid { grid-template-columns: repeat(3, 1fr); }
.footer--cols-4 .footer__grid { grid-template-columns: repeat(4, 1fr); }
.footer--cols-5 .footer__grid { grid-template-columns: repeat(5, 1fr); }

.footer__col {
    margin-bottom: 1rem;
}

.footer__col h3 {
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* Columna marca */
.footer__logo {
    height: 50px;
    margin-bottom: 18px;
}

.footer__brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer__copy {
    font-size: 0.8rem;
    color: #888;
}

/* Columna enlaces rapidos: 2 sub-columnas */
.footer__links-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0 30px;
}

.footer__col li {
    margin-bottom: 8px;
    font-size: 0.8rem;
}

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

/* Columna contacto */
.footer__contact i {
    color: var(--color-primary);
    margin-right: 8px;
    width: 16px;
}

/* Columna redes sociales */
.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer__social a:hover {
    background-color: var(--color-primary);
    color: #fff;
}


/* =========================================================
   BOTON FLOTANTE WHATSAPP
   ========================================================= */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 0.8rem;
    line-height: 1.3;
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

.whatsapp-float i {
    font-size: 1.6rem;
}

@media (max-width: 768px) {
    .footer--cols-3 .footer__grid,
    .footer--cols-4 .footer__grid,
    .footer--cols-5 .footer__grid { grid-template-columns: 1fr; }
}


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

    .section__title {
        font-size: 1.7rem;
    }

    /* Navbar: menu colapsable a pantalla completa */
    .navbar__menu {
        display: none;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        background-color: #fff;
        padding: 90px 30px 40px;
        overflow-y: auto;
        z-index: 1100;
    }

    .navbar__menu.active {
        display: block;
    }

    .navbar__menu > ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 10px 0;
    }

    .navbar__menu a {
        display: block;
        width: 100%;
        padding: 12px 0;
    }

    .has-dropdown {
        width: 100%;
    }

    .dropdown {
        display: block;
        position: static;
        box-shadow: none;
        padding-left: 15px;
    }

    /* Boton hamburguesa */
    .navbar__toggle {
        display: block;
    }

    .navbar__btn {
        display: none;
    }

    /* Boton "X" para cerrar el menu (oculto hasta que el menu este abierto) */
    .navbar__close {
        display: none;
        position: absolute;
        top: 22px;
        right: 25px;
        background: none;
        border: none;
        font-size: 1.7rem;
        color: var(--color-dark);
        cursor: pointer;
        z-index: 1101;
    }

    .navbar__menu.active .navbar__close {
        display: block;
    }

    /* Con el menu abierto se ocultan el logo y el boton hamburguesa */
    .navbar.menu-open .navbar__logo,
    .navbar.menu-open .navbar__toggle {
        visibility: hidden;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 80px 0;
    }

    .hero__title {
        font-size: 2.3rem;
    }

    .hero__features {
        gap: 15px 25px;
    }

    .hero__feature {
        flex: 1 1 40%;
    }

    /* Servicios: 2 columnas */
    .servicios__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Proceso */
    .proceso__left {
        padding: 60px 30px;
    }

    .proceso__content {
        margin: 0 auto;
    }

    .proceso__right {
        min-height: 350px;
    }

    /* Estadisticas: 2 columnas */
    .estadisticas__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    /* Proyectos: 3 columnas, la galeria hace scroll de 2 filas */
    .proyectos__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Testimonios: 1 columna */
    .testimonios__grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Footer: 2 columnas */
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }
}


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

    /* Topbar: solo iconos, sin texto largo */
    .topbar__inner {
        flex-direction: column;
        gap: 8px;
        padding: 10px 20px;
        text-align: center;
    }

    .topbar__contact {
        flex-direction: column;
        gap: 5px;
    }

    /* Navbar */
    .navbar__logo img {
        height: 42px;
    }

    /* Hero */
    .hero__title {
        font-size: 1.8rem;
    }

    .hero__text {
        font-size: 0.9rem;
    }

    .hero__features {
        flex-direction: column;
    }

    .hero__feature {
        flex: 1 1 100%;
        border-left: none;
        padding-left: 0;
        border-top: 2px solid rgba(255, 255, 255, 0.25);
        padding-top: 12px;
    }

    .hero__feature:first-child {
        border-top: none;
        padding-top: 0;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    /* Servicios: 1 columna */
    .servicios {
        padding: 60px 0;
    }

    .servicios__grid {
        grid-template-columns: 1fr;
    }

    /* Proceso: pasos en 2 columnas */
    .proceso__title {
        font-size: 1.6rem;
    }

    .proceso__steps {
        flex-wrap: wrap;
        gap: 25px 20px;
    }

    .proceso__step {
        flex: 1 1 40%;
    }

    .proceso__step i {
        font-size: 1.5rem;
    }

    .proceso__step span {
        font-size: 0.8rem;
    }

    /* Estadisticas: 1 columna */
    .estadisticas__grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    /* Proyectos: 2 columnas */
    .proyectos__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer: 1 columna */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer__brand p {
        max-width: 100%;
    }

    /* WhatsApp flotante: solo icono */
    .whatsapp-float span {
        display: none;
    }
}
