:root {
    --black: #000000;
    --gray: #7a7a7a;
    --red: #e30613;
    --yellow: #e30613;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    padding-top: 100px;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.5;
}

/*Logo*/
.logo {
    display: flex;
    align-items: center;
}

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

/* En el media query para móviles, puedes ajustar el tamaño si lo necesitas */
@media (max-width: 768px) {
    .logo img {
        height: 30px; /* Tamaño más pequeño para móviles si lo deseas */
    }
}

/* TIPOGRAFÍA GENERAL Y SECCIONES */
.section-header {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.section-title {
    font-size: 2.3rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.section-subtitle {
    font-size: 1rem;
    color: #d0d0d0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

/* Services */
.services {
    padding: 5rem 1.5rem;
    background-color: #0b0b0b;
}

.service-card {
    background: #111111;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(227, 6, 19), 0.15);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border-color: rgba(227, 6, 19), 0.6);
}

.service-card i {
    font-size: 2.3rem;
    color: var(--yellow);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    color: var(--white);
}

.service-card p {
    color: #d0d0d0;
    margin-bottom: 0.75rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    color: #bfbfbf;
    font-size: 0.95rem;
}

.service-card ul li::before {
    content: "• ";
    color: var(--yellow);
}

.service-card-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--yellow);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.service-card-more:hover {
    text-decoration: underline;
}

/* Coverage */
.coverage {
    padding: 5.5rem 1.5rem;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(227, 6, 19), 0.06), transparent 55%),
        linear-gradient(180deg, #070707 0%, #0d0d0d 100%);
}

.coverage-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.coverage-eyebrow {
    color: var(--yellow);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.coverage-copy .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.coverage-lead {
    color: #d4d4d4;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 34rem;
    margin-bottom: 1.75rem;
}

.coverage-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.coverage-list li {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-left: 2px solid var(--yellow);
    background: rgba(255, 255, 255, 0.04);
    letter-spacing: 0.01em;
}

.coverage-note {
    color: #9a9a9a;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}

.coverage-map {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    border: 1px solid rgba(227, 6, 19), 0.28);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.coverage-map::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(227, 6, 19), 0.12);
    pointer-events: none;
    z-index: 1;
}

.coverage-map iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
    filter: grayscale(25%) contrast(1.05);
}

@media (max-width: 768px) {
    .coverage-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .coverage-map,
    .coverage-map iframe {
        min-height: 260px;
    }
}

/*Boton ir a galeria*/

/* Estilos para el botón con la clase "button-to-gallery" */
.button-to-gallery {
    display: block; /* Hace que el botón sea un bloque para poder centrarlo */
    margin: 20px auto; /* Centra el botón horizontalmente y agrega espacio arriba y abajo */
    padding: 10px 20px; /* Espaciado interno para que el botón sea más grande */
    font-size: 16px; /* Tamaño de la fuente */
    font-weight: bold; /* Texto en negrita */
    color: var(--black); /* Color del texto */
    background-color: var(--yellow); /* Color de fondo del botón (azul) */
    border: none; /* Elimina el borde predeterminado */
    border-radius: 5px; /* Bordes redondeados */
    cursor: pointer; /* Cambia el cursor a una mano al pasar sobre el botón */
    transition: background-color 0.3s ease; /* Transición suave para el efecto hover */
}

/* Efecto hover para el botón con la clase "button-to-gallery" */
.button-to-gallery:hover {
    background-color: #b00010;
}

.button-to-gallery:active {
    background-color: #b00010;
}


/* Projects */
.projects {
    padding: 5rem 1.5rem;
    background-color: #050505;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2.5rem auto;
}

.project-card {
    background: #111111;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(227, 6, 19), 0.15);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.project-body {
    padding: 1.25rem 1.5rem 1.5rem 1.5rem;
}

.project-body h3 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.project-meta {
    font-size: 0.9rem;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.project-body p {
    color: #d0d0d0;
}

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




/* Clients */
.clients {
    padding: 5rem 1.5rem 4.5rem;
    background-color: #f3f4f6;
}

.clients .section-title {
    color: #0f2744;
}

.clients .section-subtitle {
    color: #6b7280;
}

.clients-carousel {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
}

.clients-viewport {
    overflow: hidden;
}

.clients-track {
    display: flex;
    transition: transform 0.55s ease;
    will-change: transform;
}

.client-slide {
    flex: 0 0 16.6667%;
    padding: 0.35rem 0.45rem;
    box-sizing: border-box;
}

.client-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    padding: 1rem 1.15rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-logo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.client-logo-card img {
    max-width: 100%;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.client-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.clients-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.clients-carousel-btn:hover {
    background: #ffffff;
    color: #0f2744;
    border-color: #d1d5db;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}




/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Formulario de contacto */
.contact-form-section {
    background: var(--black);
    padding: 40px 20px 60px 20px;
    text-align: center;
}

.contact-form {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    padding: 30px 20px 20px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    text-align: left;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--white);
    font-weight: bold;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--yellow);
    border-radius: 5px;
    font-size: 1rem;
    background: #222;
    color: var(--white);
    outline: none;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border: 1.5px solid var(--yellow);
    background: #111;
}

.contact-form button {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
    margin-top: 10px;
    width: 100%;
}

.contact-form button:hover {
    background: #ff2a33;
    color: var(--white);
}

@media (max-width: 600px) {
    .contact-form {
        padding: 15px 5px;
    }
}

/* Stats / trayectoria */
.stats-bar {
    padding: 3.5rem 1.5rem;
    background: linear-gradient(180deg, #0b0b0b 0%, #111 100%);
    border-top: 1px solid rgba(227, 6, 19, 0.18);
    border-bottom: 1px solid rgba(227, 6, 19, 0.18);
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2.1rem;
    color: var(--red);
    margin-bottom: 0.35rem;
}

.stat-item span {
    color: #c8c8c8;
    font-size: 0.95rem;
}

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

/* Sectors */
.sectors {
    padding: 5rem 1.5rem;
    background-color: #050505;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.sector-card {
    background: #111111;
    border-radius: 10px;
    padding: 1.5rem 1.5rem 1.75rem 1.5rem;
    border: 1px solid rgba(227, 6, 19), 0.15);
}

.sector-card h3 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.sector-card p {
    color: #d0d0d0;
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.1s ease;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.btn-outline {
    background: transparent;
    color: var(--yellow);
    border-color: var(--yellow);
}

.btn-outline:hover {
    background: var(--red);
    color: var(--white);
}

/* HERO NUEVO */
.hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #050505;
}

.hero-background img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}

.hero-bg-slide {
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(227, 6, 19), 0.25), transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 3rem 1.5rem 4rem 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--yellow);
}

.hero-text p {
    font-size: 1.05rem;
    color: #e5e5e5;
    max-width: 32rem;
    margin-bottom: 1.5rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hero-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #d0d0d0;
}

.hero-sub span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(227, 6, 19), 0.2);
}

.hero-highlight {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(227, 6, 19), 0.5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.hero-highlight h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.hero-highlight p {
    font-size: 0.95rem;
    color: #d0d0d0;
    margin-bottom: 1rem;
}

.hero-metric strong {
    display: block;
    font-size: 2.2rem;
    color: var(--yellow);
}

.hero-metric span {
    font-size: 0.9rem;
    color: #cccccc;
}

.hero-trust {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.5rem 2.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-trust p {
    font-size: 0.9rem;
    color: #d0d0d0;
    margin-bottom: 0.75rem;
}

.hero-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.hero-logos img {
    height: 32px;
    width: auto;
    opacity: 0.7;
    filter: grayscale(40%);
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.hero-logos img:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-3px);
}

/* FAQ */
.faq {
    padding: 5.5rem 1.5rem;
    background: #000;
    border-top: 1px solid rgba(227, 6, 19), 0.12);
}

.faq-inner {
    max-width: 820px;
    margin: 0 auto;
}

.faq-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-intro .section-subtitle {
    margin-top: 0.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.25rem 0.15rem;
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary span {
    flex: 1;
    text-align: left;
}

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--red);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

.faq-item[open] summary {
    color: var(--yellow);
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-answer {
    padding: 0 0 1.35rem;
    animation: faqOpen 0.25s ease;
}

.faq-answer p {
    color: #c8c8c8;
    line-height: 1.75;
    max-width: 40rem;
    margin: 0;
    font-size: 0.98rem;
}

@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-item summary:hover {
    color: var(--yellow);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .services,
    .projects,
    .sectors,
    .clients,
    .faq {
        padding: 3.5rem 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 2.5rem;
    }

    .hero-text h1 {
        font-size: 2.1rem;
    }

    .hero-highlight {
        max-width: 360px;
        margin: 0 auto;
    }

    .client-slide {
        flex-basis: 50%;
    }

    .clients-carousel {
        gap: 0.45rem;
    }

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

    .client-logo-card {
        height: 96px;
        padding: 0.85rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .client-slide {
        flex-basis: 25%;
    }
}