* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/* Navbar transparente */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    z-index: 1001;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    transition: all 0.5s ease;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 22px;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #7a090c;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/*** Footer ***/
.footer {
    color: #999999;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #999999;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #999999;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}


/* Menú hamburguesa para móviles */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Video de fondo */
.video-background {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}



/* Contenido de la página */
.content {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.content h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #181818;
}

/* Estilos responsivos */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 70%;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
    }

    .nav-links li {
        margin: 25px 0;
        opacity: 0;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

/* Animaciones */
.nav-active {
    transform: translateX(0%) !important;
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.gradient-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, #773d3dfb, #7a090c, #d87f7f);
    margin: 50px 0;
}

@media (max-width: 768px) {
    .gradient-divider {
        height: 1px;
        margin: 30px 0;
    }
}

/*** Service ***/
 .service-text::before {
     position: absolute;
     content: "";
     width: 100%;
     height: 0;
     top: 0;
     left: 0;
     background: var(--primary);
     opacity: 0;
     transition: .5s;
 }

 .service-item:hover .service-text::before {
     height: 100%;
     opacity: 1;
 }

 .service-text * {
     position: relative;
     transition: .5s;
     z-index: 1;
 }

 .service-item:hover .service-text * {
     color: #FFFFFF !important;
 }

 .img-fluid1 {
     width: 450px;
     height: 340px;
     object-fit: cover;

 }

 /*** Team ***/
 .team-text {
     position: absolute;
     width: 75%;
     bottom: 30px;
     left: 0;
     transition: .5s;
 }

 .team-item:hover .team-text {
     width: 100%;
 }

 .team-text * {
     transition: .5s;
 }

 .team-item:hover .team-text * {
     letter-spacing: 2px;
 }


  /* ===== VARIABLES DE PERSONALIZACIÓN ===== */
        :root {
            --color-primario: #2563eb;      
            --color-secundario: #1e40af;     /* Color secundario / hover */
            --color-fondo: #f8fafc;          /* Fondo de la sección */
            --color-texto: #1e293b;           /* Color de texto principal */
            --color-borde: #e2e8f0;           /* Color de bordes */
            --border-radius: 12px;            /* Radio de bordes consistente */
            --sombra: 0 4px 6px -1px rgb(0 0 0 / 0.1);
        }

        /* ===== ESTILOS BASE (RESPETAN TU PLANTILLA) ===== */
        .contact-section {
            padding: 4rem 2rem;
            background-color: var(--color-fondo);
            font-family: inherit; /* Hereda la fuente de tu plantilla */
        }

        .contact-container {
            max-width: 1280px;
            margin: 0 auto;
        }

        /* Títulos con estilo adaptable */
        .contact-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--color-texto);
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }

        .contact-subtitle {
            font-size: 1.125rem;
            color: #64748b;
            margin-bottom: 3rem;
            border-left: 4px solid var(--color-primario);
            padding-left: 1rem;
        }

        /* ===== GRID PRINCIPAL ===== */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }

        /* ===== TARJETAS CON ESTILO CONSISTENTE ===== */
        .contact-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 1.5rem;
            box-shadow: var(--sombra);
            border: 1px solid var(--color-borde);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .contact-card:hover {
            box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
        }

        .card-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--color-texto);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .card-title i {
            color: var(--color-primario);
        }

        /* ===== MAPA ===== */
        .map-container {
            width: 100%;
            height: 250px;
            border-radius: var(--border-radius);
            overflow: hidden;
            margin-bottom: 1rem;
        }

        .map-container iframe {
            width: 100%;
            height: 100%;
            border: 0;
        }

        .address-detail {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin-top: 1rem;
        }

        .address-detail i {
            color: var(--color-primario);
            font-size: 1.25rem;
            margin-top: 0.25rem;
        }

        .address-text {
            color: #475569;
            line-height: 1.6;
        }

        /* ===== DATOS DE EMPRESA ===== */
        .company-data-list {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .company-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px dashed var(--color-borde);
        }

        .company-item:last-child {
            border-bottom: none;
        }

        .company-item i {
            width: 40px;
            height: 40px;
            background: var(--color-fondo);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-primario);
            font-size: 1.25rem;
        }

        .company-item-content {
            flex: 1;
        }

        .company-item-label {
            font-size: 0.875rem;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .company-item-value {
            font-weight: 500;
            color: var(--color-texto);
        }

        /* ===== FORMULARIO DE COTIZACIÓN ===== */
        .quote-form {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .form-group label {
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--color-texto);
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            padding: 0.75rem 1rem;
            border: 2px solid var(--color-borde);
            border-radius: calc(var(--border-radius) - 4px);
            font-size: 1rem;
            transition: border-color 0.2s;
            background: white;
            width: 100%;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--color-primario);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        /* Preferencia de contacto */
        .contact-preference {
            background: var(--color-fondo);
            padding: 1.25rem;
            border-radius: var(--border-radius);
            border: 1px solid var(--color-borde);
        }

        .contact-preference p {
            font-weight: 500;
            margin-bottom: 1rem;
            color: var(--color-texto);
        }

        .radio-group {
            display: flex;
            gap: 2rem;
            flex-wrap: wrap;
        }

        .radio-group label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
        }

        .radio-group input[type="radio"] {
            width: auto;
            accent-color: var(--color-primario);
        }

        /* Botón de envío */
        .btn-submit {
            background: var(--color-primario);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: calc(var(--border-radius) - 4px);
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            width: 100%;
        }

        .btn-submit:hover {
            background: var(--color-secundario);
        }

        .btn-submit i {
            font-size: 1.125rem;
        }

        /* Horarios */
        .schedule-info {
            margin-top: 1.5rem;
            padding: 1rem;
            background: var(--color-fondo);
            border-radius: var(--border-radius);
            display: flex;
            align-items: center;
            gap: 1rem;
            border: 1px solid var(--color-borde);
        }

        .schedule-info i {
            color: var(--color-primario);
            font-size: 1.5rem;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .contact-grid {
                grid-template-columns: 1fr;
            }
            
            .form-row {
                grid-template-columns: 1fr;
            }
            
            .contact-title {
                font-size: 2rem;
            }
            
            .radio-group {
                gap: 1rem;
                flex-direction: column;
            }
        }

        @media (max-width: 480px) {
            .contact-section {
                padding: 2rem 1rem;
            }
            
            .company-item {
                flex-wrap: wrap;
            }
        }