/* Variables Generales */
:root {
    --primary-green: #68c028;
    --primary-brown: #5d3419;
    --dark-brown: #331704;
    --light-brown: #a86c36;
    --yellow-orange-1: #ffc400;
    --yellow-orange-2: #ed8405;
    --red-1: #dc2e16;
    --red-2: #a21000;
    --text-shadow-dark: 2px 2px 4px rgba(0, 0, 0, 0.8);
    --font-heading: "Oswald", sans-serif;
    --font-body: "Montserrat", sans-serif;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Ocultar barra de scroll en navegadores WebKit 
::-webkit-scrollbar {
    display: none;
}

/* Header */
.header {
    background: linear-gradient(
        180deg,
        var(--dark-brown) 0%,
        var(--primary-brown) 100%
    );
    color: #fff;
    position: relative;
    padding: 0rem 4rem 0rem 4rem;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

@keyframes modernLogoGlow {
    0% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
    }
    50% {
        transform: translateY(-5px) scale(1.03);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
    }
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
    }
}

/* .logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.8rem;
    font-style: italic;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.9), -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    letter-spacing: -1px;
    display: flex;
    align-items: baseline;
    animation: logoFloat 3s ease-in-out infinite;
} */
/*background imagen logo*/
.logo {
    width: 250px;
    display: flex;
    align-items: center;
    animation: modernLogoGlow 8s ease-in-out infinite;
    transition:
        transform 0.4s ease,
        filter 0.4s ease;
    position: relative;
    z-index: 999;
}

.logo:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 999;
}

@keyframes colorTeco {
    0%,
    100% {
        color: var(--primary-green);
        filter: drop-shadow(0 0 0px transparent);
    }
    50% {
        color: var(--yellow-orange-1);
        filter: drop-shadow(0 0 10px var(--yellow-orange-1));
    }
}

@keyframes colorMovil {
    0%,
    100% {
        color: #fff;
        filter: drop-shadow(0 0 0px transparent);
    }
    50% {
        color: var(--primary-green);
        filter: drop-shadow(0 0 10px var(--primary-green));
    }
}

.logo-teco {
    color: var(--primary-green);
    margin-right: 0.2rem;
    -webkit-text-stroke: 1px #2d6b13; /* borde sutil */
    animation: colorTeco 4s ease-in-out infinite;
}

.logo-movil {
    color: #fff;
    animation: colorMovil 4s ease-in-out infinite 1s; /* Retraso de 1s para que se intercalen */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--yellow-orange-1);
}

.separator {
    color: var(--light-brown);
    font-weight: 300;
}

/* Curvas decorativas SVG */
.header-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    overflow: hidden;
    line-height: 0;
}

.curve-shadow {
    fill: rgba(0, 0, 0, 0.3);
}

.curve-main {
    fill: transparent;
}

/* MAIN / TOP SECTION */
.top-section {
    position: relative;
    background-image: url("../src/bg.png");
    background-size: cover;
    background-position: center;
    padding: 0.9rem 2rem 5rem 2rem;
    background-color: #f7a83d;
}

/* Contenedor de Tarjetas */
@keyframes pulseCards {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    flex-wrap: wrap;
    animation: pulseCards 6s ease-in-out infinite;
}

/* Estructura Tarjetas */
.card {
    border-radius: 12px;
    padding: 15px;
    width: 450px;
    /* box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5), inset 0px 5px 15px rgba(255,255,255,0.4); */
    position: relative;
}

/* Backgrounds con textura simulada */
.card-yellow {
    /* background: linear-gradient(135deg, var(--yellow-orange-1) 0%, var(--yellow-orange-2) 100%); */
    background-size: 100% 20px;
    /* background-image: repeating-linear-gradient(0deg, transparent, transparent 15px, rgba(237, 132, 5, 0.3) 15px, rgba(237, 132, 5, 0.3) 30px); */
}

.card-yellow:hover {
    transform: scale(1.25);
    /* box-shadow: 0 15px 35px whitesmoke; */
    z-index: 10;
    filter: brightness(1.2);
}

.card-red:hover {
    transform: scale(1.25);
    /* box-shadow: 0 15px 35px whitesmoke; */
    z-index: 10;
    filter: brightness(1.2);
}
.card-inner {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* OVALOS detrás del texto principal */
.oval-bg {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    width: 80%;
    height: 70px;
    border-radius: 50%;
    z-index: -1;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

.dark-brown-oval {
    background: #603214;
    width: 65%;
    height: 85px;
    top: 5px;
}

.dark-red-oval {
    background: #900d00;
    width: 90%;
    height: 60px;
    top: 5px;
    transform: translateX(-50%) rotate(-3deg);
}

/* Textos de la Tarjeta */
.card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-style: italic;
    color: var(--yellow-orange-1);
    font-size: 5rem;
    line-height: 1;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
    margin-bottom: 0px;
}
.unit {
    font-size: 3.5rem;
    color: #fff;
    margin-left: 5px;
}

.text-white {
    color: #fff;
}

.gigas {
    font-size: 3rem;
    color: #fff;
    margin-top: 5px;
}

.card-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin-top: -10px;
    margin-bottom: 25px;
}

.mt-negative {
    margin-top: 5px;
}

/* Ribbons de Precio */
.price-ribbon {
    position: absolute;
    bottom: -90px;
    left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    background: linear-gradient(180deg, #d31d04 0%, #aa0705 100%);
    padding: 5px 30px;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.6);
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
    z-index: 9999;
}

.price-ribbon:hover {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    filter: brightness(1.2);
}

.price-text {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    display: flex;
    align-items: baseline;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.p-mes {
    font-size: 1.5rem;
    margin-left: 5px;
    font-family: var(--font-body);
    font-weight: 800;
}

/* Curvas inferiores Sección Tarjetas */
.bottom-curve {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.curve-shadow-bottom {
    fill: rgba(0, 0, 0, 0.5);
}
.curve-main-bottom {
    fill: var(--primary-brown);
}

/* ROUTER SECTION */
@keyframes routerBgPan {
    0% {
        background-position: center 70%;
    }
    50% {
        background-position: center 85%;
    }
    100% {
        background-position: center 70%;
    }
}

.router-section {
    background-image: url("../src/router.png");
    background-size: cover;
    background-position: center 75%; /* Ajuste de la posición vertical del background */
    padding: 7.8rem 4rem;
    position: relative;
    border-top: 0px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0px 10px 30px rgba(0, 0, 0, 0.6);
    min-height: 300px;
    display: flex;
    align-items: center;
    animation: routerBgPan 20s ease-in-out infinite;
}

.router-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

@keyframes routerTextGlow {
    0%,
    100% {
        text-shadow: var(--text-shadow-dark);
        transform: scale(1);
    }
    50% {
        text-shadow:
            0 0 15px rgba(255, 255, 255, 0.4),
            var(--text-shadow-dark);
        transform: translateX(5px) scale(1.02);
    }
}

.router-title {
    font-family: var(--font-body);
    font-weight: 800;
    font-style: italic;
    font-size: 3rem;
    color: #fff;
    text-shadow: var(--text-shadow-dark);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.1;
    animation: routerTextGlow 4s ease-in-out infinite;
}

.router-features {
    list-style: none;
}

.router-features li {
    font-family: var(--font-body);
    font-weight: 700;
    font-style: italic;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: var(--text-shadow-dark);
    margin-bottom: 0.5rem;
}

/* FOOTER */
.footer {
    background: linear-gradient(90deg, #bb5a0a 0%, #d87c1c 50%, #bb5a0a 100%);
    padding: 1.5rem 0;
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.contact-item a:hover {
    color: var(--dark-brown);
}

.sep {
    color: var(--dark-brown);
    margin: 0 0.5rem;
}

.separator-bar {
    width: 2px;
    height: 20px;
    background-color: var(--dark-brown);
}

/* Menú Hamburguesa */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 1000;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .hamburger {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
        background-color: var(--primary-brown);
        padding: 1.5rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

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

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 0;
    }

    .separator {
        display: none;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 100%;
        max-width: 450px;
    }
    .router-title {
        font-size: 2.2rem;
    }
    .router-features li {
        font-size: 1.4rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .separator-bar {
        display: none;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 1rem;
    }
    .logo {
        width: 180px;
    }
    .hamburger {
        font-size: 1.8rem;
    }
    .main-nav a {
        font-size: 1.1rem;
    }
    .top-section {
        padding: 2rem 1rem 5rem 1rem;
    }
    .card {
        padding: 10px;
    }
    .card-title {
        font-size: 3.5rem;
    }
    .unit {
        font-size: 2.2rem;
    }
    .gigas {
        font-size: 2.2rem;
    }
    .card-subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    .price-ribbon {
        bottom: -70px;
        padding: 3px 20px;
    }
    .price-text {
        font-size: 2.5rem;
    }
    .p-mes {
        font-size: 1rem;
    }
    .router-section {
        padding: 4rem 1.5rem;
    }
    .router-title {
        font-size: 1.8rem;
        text-align: center;
    }
    .router-features {
        text-align: center;
    }
    .router-features li {
        font-size: 1.1rem;
    }
    .contact-item {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.2rem;
    }
    .sep {
        display: none;
    }
}

/* Floating Contact Bubble */
.floating-contact {
    position: fixed;
    top: 35%; /* Subido del 50% al 35% en desktop */
    left: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounceBubble 3s infinite ease-in-out;
}

.floating-contact .contact-link {
    background: linear-gradient(135deg, var(--yellow-orange-1) 0%, var(--yellow-orange-2) 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 38px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(237, 132, 5, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.floating-contact .contact-link:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(237, 132, 5, 0.6);
}

@keyframes bounceBubble {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(calc(-50% - 15px));
    }
}

@media (max-width: 600px) {
    .floating-contact {
        top: auto;
        bottom: 150px; /* Subido de 20px a 150px en móvil */
        left: 20px;
        transform: translateY(0);
        animation: bounceBubbleMobile 3s infinite ease-in-out;
    }
    .floating-contact .contact-link {
        width: 65px;
        height: 65px;
        font-size: 30px;
    }
}

@keyframes bounceBubbleMobile {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
