/* ==========================================================================
   ESTILOS GENERALES Y FONDO
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #ffffff;
    color: #0f172a;
    min-height: 100vh;
    padding: 130px 24px 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Fondo con la foto original */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/nosotros.png');
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    z-index: 0;
}

/* Capa clara suave */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.80) 100%);
}

/* --- BARRA SUPERIOR BLANCA Y FLOTANTE --- */
.top-nav-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1280px;
    z-index: 9999;
}

.top-navbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 60px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo-img {
    height: 42px;
    width: auto;
    max-height: 46px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 10px rgba(220, 38, 38, 0.25));
}


.logo-icon-wrapper {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.brand-title strong {
    color: #dc2626;
}

.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 800;
    color: #dc2626;
    letter-spacing: 0.5px;
}

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    color: #334155;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-phone:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-order-now {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #dc2626;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.btn-order-now:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}

.menu-toggle-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle-btn:hover {
    background: #f1f5f9;
    color: #dc2626;
    border-color: #fee2e2;
}

/* --- MENÚ DESPLEGABLE --- */
.dropdown-menu-card {
    position: absolute;
    top: 70px;
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid #f1f5f9;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 10000;
}

.dropdown-menu-card.active {
    display: flex;
}

.dropdown-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.dropdown-links a i:first-child {
    width: 24px;
    color: #64748b;
}

.dropdown-links a span {
    flex-grow: 1;
    margin-left: 8px;
}

.dropdown-links a .arrow {
    font-size: 0.75rem;
    color: #dc2626;
    transition: transform 0.2s ease;
}

.dropdown-links a:hover, .dropdown-links a.active {
    background: #fef2f2;
    color: #dc2626;
    font-weight: 700;
}

.dropdown-links a:hover i:first-child, .dropdown-links a.active i:first-child {
    color: #dc2626;
}

.dropdown-links a:hover .arrow {
    transform: translateX(4px);
}

.dropdown-direct-call {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #dc2626;
    font-size: 0.88rem;
}

/* ==========================================================================
   CONTENEDOR Y ENCABEZADO DE NOSOTROS
   ========================================================================== */

.about-container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-header-wrapper {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(217, 37, 37, 0.25);
    color: #d92525;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1.2px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.about-title .highlight {
    color: #d92525;
}

.about-subtitle {
    font-size: 1.1rem;
    color: #334155;
    line-height: 1.6;
    font-weight: 600;
    max-width: 580px;
}

/* ==========================================================================
   ELEMENTO 3D: CÁPSULA GLASS CON FLAMA
   ========================================================================== */

.gas-visual-3d-wrapper {
    perspective: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.glass-capsule-3d {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    border: 2px solid #ffffff;
    border-radius: 32px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(217, 37, 37, 0.15),
                inset 0 0 15px rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: rotateY(-12deg) rotateX(10deg);
    animation: float3DCapsule 4s ease-in-out infinite alternate;
}

.flame-neon-3d {
    font-size: 2.8rem;
    color: #d92525;
    filter: drop-shadow(0 0 12px rgba(217, 37, 37, 0.6));
    z-index: 2;
    animation: flamePulse 2s ease-in-out infinite alternate;
}

.capsule-glow {
    position: absolute;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(217, 37, 37, 0.35) 0%, transparent 70%);
    border-radius: 50%;
}

.capsule-shadow-3d {
    width: 70px;
    height: 12px;
    background: rgba(15, 23, 42, 0.18);
    border-radius: 50%;
    margin-top: 15px;
    filter: blur(5px);
    animation: shadowPulseCapsule 4s ease-in-out infinite alternate;
}

@keyframes float3DCapsule {
    0% { transform: rotateY(-12deg) rotateX(10deg) translateY(0px); }
    100% { transform: rotateY(-4deg) rotateX(4deg) translateY(-12px); }
}

@keyframes shadowPulseCapsule {
    0% { transform: scale(1); opacity: 0.25; }
    100% { transform: scale(0.75); opacity: 0.1; }
}

@keyframes flamePulse {
    0% { transform: scale(0.98); }
    100% { transform: scale(1.08); filter: drop-shadow(0 0 18px rgba(217, 37, 37, 0.8)); }
}

/* ==========================================================================
   CARRUSEL DE TARJETAS
   ========================================================================== */

.carousel-section {
    margin-top: 10px;
}

.carousel-track-container {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 5px 30px;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}

.carousel-track-container::-webkit-scrollbar { display: none; }
.carousel-track-container { -ms-overflow-style: none; scrollbar-width: none; }
.carousel-track-container.active { cursor: grabbing; }

.carousel-card {
    min-width: 320px;
    max-width: 340px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid #ffffff;
    border-radius: 28px;
    padding: 32px 28px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(217, 37, 37, 0.12);
    background: #ffffff;
}

.card-header-icon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header-icon i {
    width: 48px;
    height: 48px;
    background: #fde8e8;
    color: #d92525;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(217, 37, 37, 0.2);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.card-text {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 800;
    color: #d92525;
    background: rgba(217, 37, 37, 0.08);
    padding: 6px 12px;
    border-radius: 8px;
    text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .about-header-wrapper {
        grid-template-columns: 1fr;
    }
    .gas-visual-3d-wrapper {
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .btn-phone span {
        display: none;
    }
    .about-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .brand-logo-img {
        height: 34px;
        max-width: 170px;
    }
}

@media (max-width: 480px) {
    .brand-logo-img {
        height: 28px;
        max-width: 135px;
    }
}
