/* ========================================
   HEADER
========================================= */

.header {
    width: 100%;

    background-color: #0a0a0a;

    border-bottom: 1px solid #222222;

    position: sticky;
    top: 0;

    z-index: 1000;
}

.header-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 30px;
}


/* ========================================
   LOGO
========================================= */

.logo {
    text-decoration: none;

    color: #ffffff;

    font-size: 1.3rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1px;

    white-space: nowrap;

    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.75;
}


/* ========================================
   NAVEGACIÓN
========================================= */

.navbar ul {
    display: flex;
    align-items: center;

    gap: 35px;

    list-style: none;
}

.navbar a {
    position: relative;

    text-decoration: none;

    color: #ffffff;

    font-size: 0.85rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;

    transition: color 0.3s ease;
}



.navbar a:hover {
    color: #d32f2f;
}


/* ========================================
   LÍNEA INFERIOR
========================================= */

.navbar a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background-color: #d32f2f;

    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}


/* ========================================
   ENLACE ACTIVO
========================================= */

.navbar a.active {
    color: #d32f2f;
}

.navbar a.active::after {
    width: 100%;
}


/* ========================================
   MENÚ MÓVIL
========================================= */

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #d32f2f;
}


/* ========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .header-container {
        padding: 15px 20px;
    }

    .navbar {
        display: none;
    }

    .navbar.active {
        display: block;

        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        padding: 30px 20px;

        background-color: #0a0a0a;

        border-bottom: 1px solid #222222;
    }

    .navbar ul {
        flex-direction: column;

        align-items: flex-start;

        gap: 25px;
    }

    .navbar a {
        font-size: 0.9rem;
    }

    .menu-toggle {
        display: block;
    }

}

/* ========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    background-color: #0a0a0a;
}


/* ========================================
   LOGO
========================================= */

.logo {
    text-decoration: none;

    color: #ffffff;

    font-size: 1.15rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.5px;

    white-space: nowrap;

    transition: opacity 0.3s ease;
}


/* ========================================
   NAVBAR
========================================= */

.navbar ul {
    display: flex;
    align-items: center;

    gap: 30px;

    list-style: none;
}


.navbar a {
    position: relative;

    text-decoration: none;

    color: #222222;

    font-size: 1rem;
    font-weight: 500;

    transition: color 0.3s ease;
}


/* HOVER */

.navbar a:hover {
    color: #d32f2f;
}


/* LÍNEA DEL HOVER */

.navbar a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background-color: #d32f2f;

    transition: width 0.3s ease;
}


.navbar a:hover::after {
    width: 100%;
}


/* SECCIÓN ACTIVA */

.navbar a.active {
    color: #d32f2f;
}


.navbar a.active::after {
    width: 100%;
}


/* ========================================
   MENÚ MÓVIL
========================================= */

.menu-toggle {
    display: none;

    border: none;

    background: transparent;

    font-size: 1.8rem;

    cursor: pointer;

    color: #111111;
}


/* ========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .header-container {
        padding: 15px 20px;
    }


    .navbar {
        display: none;
    }


    .navbar.active {
        display: block;
    }


    .navbar ul {
        flex-direction: column;

        gap: 20px;
    }


    .menu-toggle {
        display: block;
    }

}


/* ========================================
   HERO
========================================= */

.hero {
    width: 100%;
    min-height: 85vh;

    display: flex;
    align-items: center;

    position: relative;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ========================================
   HERO BACKGROUND
========================================= */

.hero-background {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 0;

    opacity: 0;

    /* Más lento */
    /* Bastante lento */
    transition: opacity 3.5s ease;
}


/* IMAGEN ACTUAL */

.hero-background-current {
    opacity: 1;
}


/* IMAGEN SIGUIENTE */

.hero-background-next {
    opacity: 0;
}

/* ========================================
   HERO BACKGROUND
========================================= */




/* ========================================
   OVERLAY
========================================= */

.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background-color: rgba(0, 0, 0, 0.55);

    z-index: 1;
}


/* ========================================
   HERO CONTAINER
========================================= */

.hero-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 60px 30px;

    position: relative;

    z-index: 2;
}


/* ========================================
   HERO CONTENT
========================================= */

.hero-content {
    max-width: 650px;
}


/* ========================================
   HERO TITLE
========================================= */

.hero-content h1 {
    margin-bottom: 25px;

    color: #ffffff;

    font-size: 5rem;
    line-height: 0.95;

    font-weight: 800;

    letter-spacing: -2px;

    text-transform: uppercase;
}


/* ========================================
   HERO DESCRIPTION
========================================= */

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.6;

    margin-bottom: 30px;

    color: #ffffff;
}


/* ========================================
   HERO BUTTON
========================================= */

.hero-button {
    display: inline-block;

    padding: 14px 28px;

    background-color: #d32f2f;
    color: #ffffff;

    text-decoration: none;

    font-size: 1rem;
    font-weight: 600;

    border-radius: 5px;

    transition: background-color 0.3s ease;
}


.hero-button:hover {
    background-color: #b71c1c;
}

/* ========================================
   HERO SUBTITLE
========================================= */

.hero-subtitle {
    display: inline-block;

    margin-bottom: 15px;

    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;

    margin-bottom: 20px;

    color: #ffffff;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;

    margin-bottom: 20px;

    color: #ffffff;

    font-weight: 800;

    letter-spacing: -1px;
}

.hero-content p {
    max-width: 600px;

    font-size: 1.15rem;
    line-height: 1.7;

    margin-bottom: 30px;

    color: #ffffff;
}

/* ========================================
   HERO RESPONSIVE - TABLET
========================================= */

@media (max-width: 992px) {

    .hero {
        min-height: 80vh;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

}

/* ========================================
   HERO RESPONSIVE - MOBILE
========================================= */

@media (max-width: 768px) {
    .hero {
        background-position: center;
    }


    .hero-container {
        padding: 50px 20px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    .hero-content h1 {
        font-size: 3rem;
        line-height: 0.95;
        letter-spacing: -1px;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-button {
        padding: 13px 24px;
        font-size: 0.95rem;
    }

}

/* ========================================
   SERVICES
========================================= */

.services {
    width: 100%;

    padding: 120px 0;

    background-color: #0a0a0a;

    color: #ffffff;
}


.services-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 0 30px;
}


/* ========================================
   SERVICES HEADER
========================================= */

.services-header {
    max-width: 800px;

    margin: 0 auto 70px;

    text-align: center;
}


.services-subtitle {
    display: inline-block;

    margin-bottom: 20px;

    color: #d32f2f;

    font-size: 0.85rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 2px;
}


.services-header h2 {
    max-width: 750px;

    margin: 0 auto 25px;

    color: #ffffff;

    font-size: 3.5rem;
    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -1.5px;

    text-transform: uppercase;
}


.services-header p {
    max-width: 650px;

    margin: 0 auto;

    color: #999999;

    font-size: 1rem;
    line-height: 1.7;
}


/* ========================================
   SERVICES CAROUSEL
========================================= */

.services-carousel {
    display: flex;

    align-items: center;

    gap: 25px;
}


/* ========================================
   SERVICE SLIDE
========================================= */

.service-slide {
    width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    min-height: 420px;
    background-color: #151515;
    overflow: hidden;
    border: 1px solid #222222;
}

/* ========================================
   SERVICE IMAGE
========================================= */

.service-image {
    width: 100%;
    height: 420px;
    overflow: hidden;
}


.service-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}


.service-slide:hover .service-image img {
    transform: scale(1.04);
}


/* ========================================
   SERVICE CONTENT
========================================= */

.service-content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 60px 50px;
}


.service-number {
    display: block;

    margin-bottom: 25px;

    color: #d32f2f;

    font-size: 0.85rem;
    font-weight: 700;

    letter-spacing: 2px;
}


.service-content h3 {
    margin-bottom: 20px;

    color: #ffffff;

    font-size: 2.2rem;
    line-height: 1.1;

    font-weight: 800;

    text-transform: uppercase;
}


.service-content p {
    color: #999999;
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-line;
}


/* ========================================
   CAROUSEL BUTTONS
========================================= */

.carousel-button {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #333333;

    border-radius: 0;

    background-color: transparent;

    color: #ffffff;

    font-size: 1.3rem;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.carousel-button:hover {
    background-color: #d32f2f;

    border-color: #d32f2f;

    color: #ffffff;

    transform: translateY(-2px);
}


/* ========================================
   INDICATORS
========================================= */

.carousel-indicators {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 35px;
}


.indicator {
    width: 30px;
    height: 2px;

    padding: 0;

    border: none;

    border-radius: 0;

    background-color: #333333;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        width 0.3s ease;
}


.indicator.active {
    width: 45px;

    background-color: #d32f2f;
}


/* ========================================
   SERVICES RESPONSIVE - TABLET
========================================= */

@media (max-width: 992px) {

    .services {
        padding: 80px 0;
    }

    .services-header h2 {
        font-size: 2.4rem;
    }

    .service-image {
        height: 350px;
    }

    .service-content {
        padding: 35px;
    }

    .service-content h3 {
        font-size: 1.7rem;
    }

    .services-carousel {
        gap: 20px;
    }

    .carousel-button {
        width: 45px;
        height: 45px;
    }

}

/* ========================================
   SERVICES RESPONSIVE
========================================= */

@media (max-width: 992px) {

    .services {
        padding: 100px 0;
    }

    .services-header h2 {
        font-size: 3rem;
    }

    .service-slide {
        grid-template-columns: 1.2fr 1fr;
    }

    .service-image {
        height: 420px;
    }

    .service-content {
        padding: 40px 35px;
    }

    .service-content h3 {
        font-size: 1.8rem;
    }

    .services-carousel {
        gap: 15px;
    }

    .carousel-button {
        width: 45px;
        height: 45px;
    }

}


@media (max-width: 768px) {

    .services {
        padding: 80px 0;
    }

    .services-container {
        padding: 0 20px;
    }

    .services-header {
        margin-bottom: 50px;
    }

    .services-header h2 {
        font-size: 2.2rem;

        letter-spacing: -1px;
    }

    .services-header p {
        font-size: 0.95rem;
    }

    .services-carousel {
        gap: 10px;
    }

    .service-slide {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 280px;
    }

    .service-content {
        padding: 35px 25px;
    }

    .service-number {
        margin-bottom: 15px;
    }

    .service-content h3 {
        font-size: 1.6rem;
    }

    .service-content p {
        font-size: 0.95rem;
    }

    .carousel-button {
        width: 40px;
        height: 40px;

        font-size: 1.1rem;
    }

    .carousel-indicators {
        margin-top: 25px;
    }

}

/* ========================================
   SERVICES RESPONSIVE - MOBILE
========================================= */

@media (max-width: 768px) {

    .services {
        padding: 70px 0;
    }

    .services-container {
        padding: 0 20px;
    }


    /* HEADER */

    .services-header {
        margin-bottom: 40px;
    }

    .services-header h2 {
        font-size: 2rem;
    }

    .services-header p {
        font-size: 1rem;
    }


    /* CAROUSEL */

    .services-carousel {
        gap: 10px;
    }


    /* SLIDE */

    .service-slide {
        grid-template-columns: 1fr;
    }


    /* IMAGE */

    .service-image {
        height: 250px;
    }


    /* CONTENT */

    .service-content {
        padding: 30px 25px;
    }

    .service-content h3 {
        font-size: 1.5rem;
    }

    .service-content p {
        font-size: 1rem;
    }


    /* BUTTONS */

    .carousel-button {
        width: 40px;
        height: 40px;

        font-size: 1.2rem;
    }

}

/* ========================================
   CAROUSEL TRANSITION
========================================= */

.service-slide {
    transition: opacity 0.15s ease;
}

.service-slide.fade {
    opacity: 0.6;
}


/* ========================================
   SERVICE IMAGE HOVER
========================================= */

.service-image {
    overflow: hidden;
}

.service-image img {
    transition: transform 0.4s ease;
}

.service-slide:hover .service-image img {
    transform: scale(1.04);
}

/* ========================================
   CONTACTO
========================================= */

.contact {
    width: 100%;
    padding: 100px 0;
    background-color: #111111;
}

.contact-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;

    align-items: center;
}


/* ========================================
   CONTACT HEADER
========================================= */

.contact-header {
    margin-bottom: 40px;
}

.contact-header span {
    display: inline-block;

    margin-bottom: 15px;

    color: #d32f2f;

    font-size: 0.9rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-header h2 {
    margin-bottom: 20px;

    color: #ffffff;

    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 800;
}

.contact-header p {
    color: #bdbdbd;

    font-size: 1.05rem;
    line-height: 1.7;
}


/* ========================================
   CONTACT DETAILS
========================================= */

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-icon {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #d32f2f;
    color: #ffffff;

    border-radius: 50%;

    font-size: 1.2rem;
}

.contact-item>div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    color: #ffffff;

    font-size: 1rem;
    font-weight: 700;
}

.contact-item a,
.contact-item>div>span:not(.contact-label) {
    color: #bdbdbd;

    font-size: 0.95rem;
    line-height: 1.5;

    text-decoration: none;
}

.contact-item a {
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #d32f2f;
}


/* ========================================
   CONTACT ACTION
========================================= */

.contact-action {
    padding: 50px;

    background-color: #1c1c1c;

    border: 1px solid #2d2d2d;
    border-radius: 10px;
}

.contact-action-subtitle {
    display: inline-block;

    margin-bottom: 15px;

    color: #d32f2f;

    font-size: 0.9rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-action h3 {
    margin-bottom: 20px;

    color: #ffffff;

    font-size: 2rem;
    line-height: 1.2;
}

.contact-action p {
    margin-bottom: 30px;

    color: #bdbdbd;

    font-size: 1rem;
    line-height: 1.7;
}


/* ========================================
   CONTACT BUTTON
========================================= */

.contact-button {
    display: inline-block;

    padding: 14px 28px;

    background-color: #d32f2f;
    color: #ffffff;

    border-radius: 5px;

    text-decoration: none;

    font-size: 1rem;
    font-weight: 700;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.contact-button:hover {
    background-color: #b71c1c;

    transform: translateY(-2px);
}


/* ========================================
   CONTACT RESPONSIVE - TABLET
========================================= */

@media (max-width: 992px) {

    .contact {
        padding: 80px 0;
    }

    .contact-container {
        gap: 40px;
    }

    .contact-header h2 {
        font-size: 2.4rem;
    }

    .contact-action {
        padding: 35px;
    }

    .contact-action h3 {
        font-size: 1.7rem;
    }

}


/* ========================================
   CONTACT RESPONSIVE - MOBILE
========================================= */

@media (max-width: 768px) {

    .contact {
        padding: 70px 0;
    }

    .contact-container {
        padding: 0 20px;

        grid-template-columns: 1fr;

        gap: 50px;
    }


    /* HEADER */

    .contact-header {
        margin-bottom: 35px;
    }

    .contact-header h2 {
        font-size: 2rem;
    }

    .contact-header p {
        font-size: 1rem;
    }


    /* DETAILS */

    .contact-details {
        gap: 22px;
    }

    .contact-icon {
        width: 42px;
        height: 42px;

        font-size: 1.1rem;
    }


    /* ACTION */

    .contact-action {
        padding: 30px 25px;
    }

    .contact-action h3 {
        font-size: 1.5rem;
    }

    .contact-action p {
        font-size: 0.95rem;
    }


    /* BUTTON */

    .contact-button {
        width: 100%;

        text-align: center;

        padding: 14px 20px;
    }

}


/* ========================================
   FOOTER
========================================= */

.footer {
    width: 100%;
    background-color: #0a0a0a;
    color: #ffffff;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 30px;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}


/* ========================================
   FOOTER INFORMATION
========================================= */

.footer-logo {
    display: inline-block;

    margin-bottom: 20px;

    color: #ffffff;

    font-size: 1.5rem;
    font-weight: 700;

    text-decoration: none;
}

.footer-info p {
    max-width: 400px;

    color: #999999;

    font-size: 0.95rem;
    line-height: 1.7;
}


/* ========================================
   FOOTER TITLES
========================================= */

.footer-navigation h3,
.footer-contact h3 {
    margin-bottom: 20px;

    color: #ffffff;

    font-size: 1.1rem;
}


/* ========================================
   FOOTER LISTS
========================================= */

.footer-navigation ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;

    list-style: none;
}

.footer-navigation a,
.footer-contact a,
.footer-contact span {
    color: #999999;

    font-size: 0.95rem;
    line-height: 1.5;

    text-decoration: none;

    transition: color 0.3s ease;
}

.footer-navigation a:hover,
.footer-contact a:hover {
    color: #d32f2f;
}


/* ========================================
   FOOTER BOTTOM
========================================= */

.footer-bottom {
    border-top: 1px solid #222222;

    padding: 20px 30px;

    text-align: center;
}

.footer-bottom p {
    color: #666666;

    font-size: 0.85rem;
}

/* ========================================
   FOOTER RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .footer-container {
        padding: 50px 20px;

        grid-template-columns: 1fr;

        gap: 40px;
    }


    /* INFORMACIÓN */

    .footer-info p {
        max-width: 100%;
    }


    /* COPYRIGHT */

    .footer-bottom {
        padding: 20px;
    }

}



/* ========================================
   HEADER - NAVEGACIÓN
========================================= */

.header .navbar ul li a {
    color: #ffffff;
    opacity: 1;
    filter: none;
}

.header .navbar ul li a.active {
    color: #d32f2f;
}


/* ========================================
   MENÚ MÓVIL - VISIBILIDAD
========================================= */

@media (max-width: 768px) {

    .header .menu-toggle {
        display: block;
        color: #ffffff;
        opacity: 1;
        filter: none;
        visibility: visible;
        text-shadow: none;
    }

}


/* ========================================
   TRANSICIÓN CARRUSEL DE SERVICIOS
========================================= */

.service-slide {
    transition: opacity 0.35s ease;
}

.service-slide.is-changing {
    opacity: 0;
}

.service-description {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-point {
    position: relative;
    display: block;
    padding-left: 18px;
    color: #999999;
    font-size: 1rem;
    line-height: 1.6;
}

.service-point::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    background-color: #d32f2f;
    border-radius: 50%;
}


.contact-icon svg {
    width: 21px;
    height: 21px;
    display: block;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: transparent;
    border: 1px solid #333333;

    color: #ffffff;
    border-radius: 0;

    transition:
        border-color 0.3s ease,
        background-color 0.3s ease;
}