/* ============================
   MONTAJES METÁLICOS MALLO - HOME
   CSS Optimizado solo para index.html
   ============================ */

/* IMPORTAR FUENTE */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    min-height: 100vh;
    text-align: center;
    position: relative;
    padding-top: 92px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

/* IMAGEN DE FONDO CORPORATIVA */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('logo.webp') no-repeat center center/contain;
    opacity: 0.15;
    z-index: -1;
}

/* HEADER Y NAVEGACIÓN */
.main-header {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ffc107;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu li a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-menu li a:hover {
    background-color: #ffc107;
    color: #1a1a1a;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #ffc107;
    font-size: 2em;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: rgba(0, 0, 0, 0.95);
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 20px;
}

.mobile-menu ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 700;
}

/* HERO SECTION */
.hero-section {
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95em;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.hero-title {
    color: #ffc107;
    font-size: 2.5em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subtitle {
    color: #ccc;
    font-size: 1.2em;
    margin-bottom: 25px;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-benefits span {
    color: #fff;
    font-size: 0.95em;
}

.hero-benefits i {
    color: #ffc107;
    margin-right: 5px;
}

/* SEO CONTENT SECTION */
.seo-content-section {
    padding: 60px 20px;
    background-color: rgba(30, 30, 30, 0.5);
    border-top: 1px solid rgba(255, 193, 7, 0.3);
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
}

.seo-container {
    max-width: 900px;
    margin: 0 auto;
}

.seo-title {
    color: #ffc107;
    font-size: 2em;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seo-article {
    margin-bottom: 40px;
}

.seo-article h3 {
    color: #ffc107;
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 600;
}

.seo-article p {
    color: #ddd;
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 15px;
}

.seo-article strong {
    color: #fff;
    font-weight: 600;
}

.servicios-seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.servicio-seo-item {
    background: rgba(42, 42, 42, 0.6);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.servicio-seo-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 193, 7, 0.5);
}

.servicio-seo-item h4 {
    color: #ffc107;
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.servicio-seo-item h4 i {
    margin-right: 10px;
}

.servicio-seo-item p {
    font-size: 0.95em;
    margin-bottom: 0;
}

/* PROYECTOS DESTACADOS HOME - CAROUSEL */
.proyectos-destacados-home {
    padding: 60px 20px;
    background-color: rgba(20, 20, 20, 0.8);
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
}

.proyectos-home-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title-proyectos {
    color: #ffc107;
    font-size: 2em;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.proyectos-intro-text {
    text-align: center;
    color: #ddd;
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Carousel Wrapper */
.proyectos-carousel-wrapper {
    position: relative;
    margin-bottom: 35px;
    overflow: hidden;
}

/* Carousel Track */
.proyectos-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    padding: 10px 0;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.carousel-btn:hover {
    background: #ffdb4d;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.3);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #ffc107;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 193, 7, 0.6);
}

/* Proyecto Card */
.proyecto-destacado-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
}

.proyecto-destacado-card:hover {
    transform: translateY(-5px);
}

.proyecto-destacado-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.proyecto-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
    padding: 20px 15px;
    color: #fff;
}

.proyecto-overlay h5 {
    color: #ffc107;
    font-size: 1.1em;
    margin-bottom: 5px;
    font-weight: 600;
}

.proyecto-overlay p {
    font-size: 0.85em;
    margin-bottom: 8px;
    color: #ccc;
    line-height: 1.3;
}

.proyecto-overlay span {
    font-size: 0.9em;
}

.btn-ver-todos-proyectos-home {
    display: inline-block;
    background-color: #ffc107;
    color: #000;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn-ver-todos-proyectos-home:hover {
    background-color: #ffdb4d;
    transform: translateY(-2px);
}

.btn-ver-todos-proyectos-home i {
    margin-right: 8px;
}

/* POR QUÉ ELEGIRNOS / CÓMO TRABAJAMOS */
.por-que-elegirnos {
    padding: 60px 20px;
    background-color: rgba(30, 30, 30, 0.5);
    border-top: 1px solid rgba(255, 193, 7, 0.2);
}

.por-que-content {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title-por-que {
    color: #ffc107;
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
}

.por-que-texto {
    color: #ddd;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.por-que-texto strong {
    color: #fff;
}

.como-trabajamos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.como-item {
    text-align: center;
    padding: 25px 20px;
    background: rgba(42, 42, 42, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.15);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.como-item:hover {
    border-color: rgba(255, 193, 7, 0.4);
    transform: translateY(-3px);
}

.como-item i {
    font-size: 2.5em;
    color: #ffc107;
    margin-bottom: 15px;
}

.como-item h3 {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 12px;
    font-weight: 600;
}

.como-item p {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.6;
}

/* CONTACTO DIRECTO */
.presupuesto-rapido {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-top: 2px solid rgba(255, 193, 7, 0.3);
}

.presupuesto-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.presupuesto-title {
    color: #ffc107;
    font-size: 2em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.presupuesto-subtitle {
    color: #ddd;
    font-size: 1.15em;
    margin-bottom: 35px;
}

.contacto-directo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 700px;
    margin: 0 auto;
}

.contacto-directo-card {
    background: rgba(42, 42, 42, 0.8);
    padding: 30px 25px;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
}

.contacto-directo-card:hover {
    border-color: #ffc107;
    transform: translateY(-5px);
}

.contacto-directo-card i {
    font-size: 2.5em;
    color: #ffc107;
    margin-bottom: 15px;
}

.contacto-directo-card h3 {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.contacto-directo-card .numero-contacto {
    color: #ffc107;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 8px;
}

.contacto-directo-card .contacto-disponibilidad {
    color: #aaa;
    font-size: 0.9em;
}

.whatsapp-card {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
}

.whatsapp-card:hover {
    border-color: #25D366;
}

.whatsapp-card i {
    color: #25D366;
}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

/* ============================
   BANNER DE EMPLEO
   ============================ */
.empleo-banner-section {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(42, 42, 42, 0.8) 100%);
    padding: 60px 20px;
    margin: 80px 0;
    border-top: 2px solid #ffc107;
    border-bottom: 2px solid #ffc107;
}

.empleo-banner-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.empleo-banner-icon {
    font-size: 4em;
    color: #ffc107;
    margin-bottom: 25px;
}

.empleo-banner-title {
    font-size: 2.2em;
    color: #ffc107;
    margin-bottom: 20px;
    font-weight: 700;
}

.empleo-banner-text {
    font-size: 1.15em;
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 35px;
}

.btn-empleo-banner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #1a1a1a;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15em;
    transition: all 0.3s ease;
    border: 2px solid #ffc107;
}

.btn-empleo-banner:hover {
    background: #e0a800;
    border-color: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

/* FOOTER */
.main-footer {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 30px 20px;
    text-align: center;
    border-top: 2px solid #ffc107;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    color: #aaa;
    margin-bottom: 10px;
}

.footer-content a {
    color: #ffc107;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-servicios {
    margin-bottom: 15px;
}

.footer-localidades {
    color: #999;
    font-size: 0.9em;
}

.footer-localidades a {
    color: #ffc107;
    text-decoration: none;
    margin: 0 5px;
}

.footer-localidades a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* Tablet breakpoint - 2 cards */
@media (max-width: 1024px) and (min-width: 769px) {
    .proyecto-destacado-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 250px;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body {
        padding-top: 72px;
    }

    .main-header {
        padding: 10px 15px;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .hero-benefits {
        flex-direction: column;
        gap: 10px;
    }

    .seo-title {
        font-size: 1.6em;
    }

    .seo-article h3 {
        font-size: 1.3em;
    }

    .servicios-seo-grid {
        grid-template-columns: 1fr;
    }

    .section-title-proyectos {
        font-size: 1.6em;
    }

    .proyectos-intro-text {
        font-size: 1em;
    }

    /* Responsive carousel: show 1 card on mobile */
    .proyecto-destacado-card {
        flex: 0 0 calc(100% - 20px);
        min-width: 260px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1em;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    .empleo-banner-section {
        padding: 40px 15px;
        margin: 60px 0;
    }

    .empleo-banner-icon {
        font-size: 3em;
    }

    .empleo-banner-title {
        font-size: 1.6em;
    }

    .empleo-banner-text {
        font-size: 1em;
    }

    .btn-empleo-banner {
        padding: 14px 30px;
        font-size: 1em;
    }

    .section-title-por-que {
        font-size: 1.5em;
    }

    .como-trabajamos-grid {
        grid-template-columns: 1fr;
    }

    .presupuesto-title {
        font-size: 1.6em;
    }

    .contacto-directo-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.7em;
        bottom: 15px;
        right: 15px;
    }
}
