
: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;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #fdb10b #212123;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--light);
    line-height: 1.6;
}


/*-------------------------------------------------------------------------------*/



/* 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 */

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

.soluciones-hero.tp {
    background: url("img/fondo/f-2.webp") no-repeat center center / cover;
    color: #fdb10b;
    text-align: center;
    padding: 3em 1em;
    height: auto;
    height: 40vh;

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

.soluciones-hero.p {
    background: url("img/fondo/f5.webp") no-repeat center center / cover;
    color: #fdb10b;
    text-align: center;
    padding: 3em 1em;
    height: auto;
    height: 40vh;

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

.soluciones-hero.rf {
    background: url(img/fondo/f-3.webp) no-repeat center center/cover;
    color: #fdb10b;
    text-align: center;
    padding: 3em 1em;
    height: 40vh;

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

.soluciones-hero.tag {
    background: url(img/fondo/f4.webp) no-repeat center center/cover;
    color: #fdb10b;
    text-align: center;
    padding: 3em 1em;
    height: 40vh;

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

@media (max-width: 768px) {
    .soluciones-hero.tp {
        height: 50vh;
        padding: 2em 1em;
    }

    .soluciones-hero.p {
        height: 50vh;
        padding: 2em 1em;
    }

    .soluciones-hero.rf {
        height: 50vh;
        padding: 2em 1em;
    }

    .soluciones-hero.tag {
        height: 50vh;
        padding: 2em 1em;
    }
}

.soluciones-hero p{
    color: #fafafa;
}

/*--------------------------------------------------------------*/

section {
    padding-inline: 2rem; /* agrega espacio a los lados izquierdo y derecho */
    padding-block: 2rem;  /* opcional: espacio arriba y abajo */
    max-width: 100%;    /* limita el ancho para que no se extienda de más */
    margin: 0 auto;       /* centra horizontalmente */
}


/*---------------------------------------------------------------*/

h2{
    color: #212123;
}

/*--------------------------------------------------------------*/


.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}


/* Tarjeta estilo 3 */

.card_3 {
    position: relative;
    height: 250px;
    background-color: #f2f2f2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
    box-shadow: 0 0 0 5px #ffffff80;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
}


.card__content_3 {
    overflow-y: auto;          /* Muestra scroll solo si se necesita */
    padding-right: 8px;        /* Espacio para evitar que el scroll tape el texto */
    scroll-behavior: smooth;
}

/* Opcional: Personaliza el scroll para que se vea más estético */
.card__content_3::-webkit-scrollbar {
    width: 6px;
}

.card__content_3::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.card__content_3::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 4px;
} 

.card_3:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.card__content_3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #f2f2f2;
    transform: rotateX(-90deg);
    transform-origin: bottom;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card_3:hover .card__content_3 {
    transform: rotateX(0deg);
}

.card__title_3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin: 1rem;
}

.card_3:hover svg {
    scale: 0;
}

.card__description_3 {
    margin: 10px 0 0;
    font-size: 14px;
    color: #777;
    line-height: 1.4;
}

.card_3 img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-weight: bold;
    font-size: 24px;
    padding: 20px;
    color: #f8f8f8;
}

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

.enlace_solucion {
    margin-top: 1rem;
}

.card__content_3 a:hover {
    color: #fdb10b;               /* Color al hacer hover*/
    text-decoration: underline;   /* Subrayado al pasar el mouse */
}

