
:root {
    --primary: #fdb10b;
    --dark: #212123;
    --light: #f4f4f4;
    --text: #ffffff;
    --accent: #212123;
}

/* Webkit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background-color: #fdb10b;
    border-radius: 8px;
    border: 2px solid #f1f1f1;
}

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

}

.container {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1.5s ease;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fdb10b;
}

.text {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #fdb10b;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 1rem;
    background-color: var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo a{
    color: #fdb10b;             /* Color base del texto */
    text-decoration: none;        /* Quitar subrayado si lo deseas */
    transition: color 0.3s ease;  /* Animación suave */

}

nav a {
    margin-left: 2rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/*-----------------------------------------------------------------*/
/* CONTENEDOR DEL DROPDOWN */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 400;
    color: (--text);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dropbtn:hover {
    color: #fdb10b;
}

/* ESTILO DE SUBMENÚ */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #212123;
    backdrop-filter: blur(6px);
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    animation: dropdownFade 0.25s ease-out;
    z-index: 100;
}

@keyframes dropdownFade {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ITEMS DEL SUBMENÚ */
.dropdown-content a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    color: (--text);
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
    background-color: #212123;
}

.dropdown-content a:hover {
    background-color: #414144;
    color: #ffffff;
    border-left: 3px solid #fdb10b;
}

/* ACTIVACIÓN AL HOVER */
.dropdown:hover .dropdown-content {
    display: block;
}

/* RESPONSIVO */
@media (max-width: 1000px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        backdrop-filter: none;
        background-color: #212123;
        border-radius: 0;
        padding: 0;
    }

    .dropbtn {
        width: 100%;
        text-align: left;
    }

    .dropdown-content a {
        padding-left: 1rem;
        border-left: none;
    }
}

/* BOTÓN HAMBURGUESA */
.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    color: var(--primary);
    border: none;
    cursor: pointer;
}

/* RESPONSIVO */
@media (max-width: 1000px) {
        .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: var(--accent);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        gap: 1rem;
        text-align: center;
    }

    .nav-links a {
        padding: 0.5rem 0;
        border-bottom: 1px solid #333;
    }

    .nav-links.show {
        display: flex;
    }
}

.contact-info {
    text-align: center;
    color: #ffffff;

    border-radius: 10px;
}

.contact-info a {
    color: #fdb10b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ffffff;
}

.social-links {
    margin-top: 0.5rem;
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer {
    background-color: #212123;
    color: #999;
    padding: 2rem 1rem;
    font-family: Arial, sans-serif;
}

.footer-bottom a {
    color: #666;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #fdb10f;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    max-width: 1200px;
    margin: auto;
}

.footer-col {
    flex: 1 1 250px;
}

.footer-col p, .footer-col a {
    color: white;
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
    font-size: 0.95rem;
    text-align: left;
}

.footer-col a:hover {
    color: #fdb10b;
}

.footer-col.direccion {
    margin-right: 6rem;
}

.social-links a {
    margin-right: 0.75rem;
    font-size: 1.2rem;
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    border-top: 1px solid #2f3b3f;
    padding-top: 1rem;
}



.footer-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    text-align: left;
    width: 100%;
    padding: 0.5rem 0;
    font-weight: bold;
}

.footer-content {
  display: block; /* visible por defecto en escritorio */
}

@media (max-width: 1000px) {
    .footer-toggle {
        cursor: pointer;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        align-items: center
    }

    .footer-col.direccion {
        margin-right: 0;
    }

    .footer-content {
        display: none;
    }

    .footer-col.active .footer-content {
        display: block;
    }

    .footer-toggle {
        text-align: center;
        width: 100%;
    }

    .footer-col {
    flex: 0 1 auto;
    padding-bottom: 1rem;
    }
}

/* HERO para soluciones */
.hero {
    background: linear-gradient(to right, #1e1e1e, #2e2e2e);
    color: #fdb10b;
    text-align: center;
    padding: 3em 1em;
}

.hero-2 {
    background: url('img/fondo/instalacion.webp') center/cover no-repeat;
    color: #fdb10b;
    text-align: center;
    padding: 100px 20px;
}

.hero.i {
    background: url("img/fondo/f6.webp") no-repeat center center/cover;
    color: #fdb10b;
    text-align: center;
    padding: 3em 1em;
    height: 35vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
}

.hero.m {
    background: url("img/fondo/f7.webp") no-repeat center center/cover;
    color: #fdb10b;
    text-align: center;
    padding: 3em 1em;
    height: 35vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
}

.hero.r {
    background: url("img/fondo/f8.webp") no-repeat center center/cover;
    color: #fdb10b;
    text-align: center;
    padding: 3em 1em;
    height: 35vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
}

.hero p{
    color: #fafafa;
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    font-size: 2rem;
    color: #212123;
    margin-bottom: 20px;
    text-align: center;
}

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

@media screen and (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr); /* 2 tarjetas en tablet */
    }
}

@media screen and (max-width: 640px) {
    .cards {
        grid-template-columns: 1fr; /* 1 tarjeta en móviles */
    }
}

.card {
    background-color: #ffffffff;
    border-left: 5px solid #fdb10b;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #212123;
}
.card:hover {
    transform: translateY(-5px) scale(1.02);

}

.card h3 {
    color: #212123;
    margin-bottom: 10px;
}

.contact-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.contact-form button {
    margin-top: 15px;
    background-color: #fdb10b;
    color: #1C282B;
    padding: 12px 20px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.contact-form button:hover {
    background-color: #e3a708;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }
}

.warning-card {
    background-color: #ffffff;
    border-left: 5px solid #ff4c4c;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }
}


.full-width {
    background-color: #ffffff;
    border-left: 5px solid #fdb10f; /* puedes cambiar el color si prefieres mantener el amarillo */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #212123;
    margin-top: 40px;
}

.full-width ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.full-width ul li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.full-width p {
    margin-top: 1rem;
    line-height: 1.6;
}
