/* =========================
   RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #e7e7e9;
    color: #1a1a1a;
}


/* =========================
   HEADER
========================= */
.main-header {
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 50px;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo */
/* LOGO AJUSTADO Y VISIBLE */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;        /* más grande */
    width: auto;         /* mantiene proporción */
    object-fit: contain; /* evita recortes */
    display: block;
}


/* Right section */
.right-section {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 40px;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;
}

/* Underline animation */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #3e7fa6;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #3e7fa6;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Logout button */
.logout-btn {
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3e7fa6, #2f6889);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(62, 127, 166, 0.4);
}


/* =========================
   HERO
========================= */
.hero {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background-image:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url("../img/metal_principal.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    text-align: center;
    color: #ffffff;
    padding: 50px;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 15px;
    color: #eaeaea;
    max-width: 700px;
    margin: 0 auto;
}


/* =========================
   SOLUTIONS SECTION
========================= */
.solutions {
    padding: 140px 60px;
    text-align: center;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
        url("../img/metal_principal.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.solutions h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.solutions-subtitle {
    font-size: 15px;
    color: #666;
    max-width: 720px;
    margin: 0 auto 80px;
    line-height: 1.6;
}

/* Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1150px;
    margin: 0 auto;
}

/* Card */
.solution-card {
    background-color: #b9e3e3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

/* Text */
.solution-text {
    padding: 35px;
    text-align: left;
}

.solution-text h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

.solution-text h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: #3e7fa6;
    margin-top: 8px;
    border-radius: 2px;
}

.solution-text p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-top: 15px;
}

/* Image */
.solution-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.solution-card:hover img {
    transform: scale(1.08);
}


/* =========================
   FEATURE SPLIT SECTION
========================= */
.feature {
    padding: 140px 60px;

    /* NUEVO FONDO CON IMAGEN */
    background-image:
        linear-gradient(
            rgba(15, 20, 30, 0.85),
            rgba(15, 20, 30, 0.85)
        ),
        url("../img/fondo_section3.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.feature-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* TEXTO */
.feature-text h2 {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 25px;
}

.feature-text p {
    font-size: 15px;
    color: #cfd6dd;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 35px;
}

/* BOTÓN */
.feature-btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.feature-btn:hover {
    background-color: #3e7fa6;
    border-color: #3e7fa6;
}

/* IMAGEN */
.feature-image {
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}



/* =========================
   SERVICES MODERN SECTION
========================= */
.services-modern {
    padding: 140px 60px;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.88),
            rgba(255, 255, 255, 0.88)
        ),
        url("../img/fondo_section3.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.services-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services-wrapper h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.services-subtitle {
    font-size: 15px;
    color: #666;
    max-width: 720px;
    margin: 0 auto 80px;
    line-height: 1.6;
}

/* LIST */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* ITEM */
.service-item {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

/* Alternar layout */
.service-item:nth-child(even) {
    grid-template-columns: 1.2fr 1fr;
}

.service-item:nth-child(even) .service-image {
    order: 2;
}

/* IMAGE */
.service-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transition: transform 0.5s ease;
}

.service-item:hover img {
    transform: scale(1.05);
}

/* CONTENT */
.service-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.service-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    max-width: 500px;
}



/* =========================
   FOOTER (ACTUALIZADO)
========================= */
.footer {
    background-color: #1e3656;
    color: #ffffff;
    padding: 80px 60px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 80px;
    align-items: center;
}

/* BRAND */
.footer-brand h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: #cfd6dd;
    margin-bottom: 30px;
    max-width: 280px;
}

/* SOCIAL */
.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #3e7fa6;
    border-color: #3e7fa6;
}

/* CONTACT */
.footer-contact p {
    font-size: 14px;
    color: #cfd6dd;
    line-height: 1.8;
}

/* PARTNER IMAGE */
.footer-partner {
    display: flex;
    justify-content: flex-end;
}

.footer-partner img {
    max-width: 250px;   /* tamaño prudente */
    width: 100%;
    height: auto;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-partner a:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* BOTTOM */
.footer-bottom {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 13px;
    color: #cfd6dd;
}


/* =========================
   BLOG HERO
========================= */
.blog-hero {
    padding: 120px 60px;
    background: linear-gradient(
        rgba(15, 20, 30, 0.85),
        rgba(15, 20, 30, 0.85)
    );
    text-align: center;
}

.blog-hero h1 {
    font-size: 44px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.blog-hero p {
    font-size: 15px;
    color: #cfd6dd;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================
   BLOG LIST
========================= */
/* =========================
   BLOG CAROUSEL (MODERN)
========================= */
.blog-carousel {
    padding: 140px 0;
    background: linear-gradient(
        rgba(10, 25, 45, 0.97),
        rgba(10, 25, 45, 0.97)
    );
    overflow: hidden;
}

/* HEADER */
.blog-carousel-header {
    max-width: 1200px;
    margin: 0 auto 80px;
    text-align: center;
    padding: 0 40px;
}

.blog-carousel-header h2 {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 12px;
}

.blog-carousel-header p {
    font-size: 14px;
    color: #cfd6dd;
}

/* TRACK */
.blog-carousel-track {
    display: flex;
    gap: 40px;
    padding: 0 60px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.blog-carousel-track::-webkit-scrollbar {
    height: 8px;
}

.blog-carousel-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

/* SLIDE */
.blog-slide {
    min-width: 360px;
    max-width: 360px;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.blog-slide:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 50px 90px rgba(0, 0, 0, 0.5);
}

/* IMAGE */
.blog-slide img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-slide:hover img {
    transform: scale(1.08);
}

/* CONTENT */
.blog-slide-content {
    padding: 25px;
}

.blog-slide-content h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #000000;
}

.blog-slide-content span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
}

.blog-slide-content p {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* LINK BUTTON */
.blog-slide-content a {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #3e7fa6;
    text-decoration: none;
    position: relative;
}

.blog-slide-content a::after {
    content: "→";
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.blog-slide-content a:hover::after {
    transform: translateX(4px);
}


/* =========================
   BLOG SECTION
========================= */
.blog-section {
    padding: 140px 60px;
    background-image:
        linear-gradient(
            rgba(10, 20, 35, 0.9),
            rgba(10, 20, 35, 0.9)
        ),
        url("../img/fondo_section3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* TITULOS */
.blog-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-subtitle {
    font-size: 15px;
    color: #cfd6dd;
    margin-bottom: 80px;
}

/* GRID */
.blog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
}

/* CARD */
.blog-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 45px 90px rgba(0, 0, 0, 0.35);
}

/* IMAGEN */
.blog-image {
    height: 280px;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* imagen completa, sin recorte */
}


/* CONTENIDO */
.blog-content {
    padding: 25px;
    text-align: left;
}

.blog-content h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.blog-content span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.blog-content p {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .blog-cards {
        grid-template-columns: 1fr;
    }
}


/* =========================
   VIDEO CAROUSEL (PREMIUM)
========================= */
.video-section {
    padding: 140px 60px;
    background-image:
        linear-gradient(
            rgba(10, 20, 35, 0.9),
            rgba(10, 20, 35, 0.9)
        ),
        url("../img/fondo_section3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.video-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.video-subtitle {
    font-size: 15px;
    color: #cfd6dd;
    margin-bottom: 80px;
}

/* CAROUSEL */
.video-carousel {
    overflow: hidden;
    position: relative;
}

.video-track {
    display: flex;
    gap: 40px;
    animation: scrollVideos 30s linear infinite;
}

/* SLIDE */
.video-slide {
    min-width: 340px;
    height: 520px;
    border-radius: 26px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.55);
    transition: transform 0.4s ease;
}

.video-slide:hover {
    transform: scale(1.05);
}

/* VIDEO */
.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ANIMATION */
@keyframes scrollVideos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .video-track {
        animation: none;
        flex-direction: column;
    }

    .video-slide {
        width: 100%;
        height: auto;
        aspect-ratio: 9 / 16;
    }
}


/* =========================
   VIDEO GALLERY
========================= */
.video-section {
    padding: 140px 60px;
    background: #0a1423;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.video-title {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 12px;
}

.video-subtitle {
    color: #cfd6dd;
    margin-bottom: 70px;
}

/* GALERIA */
.video-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* WRAPPER */
.video-wrapper {
    width: 700px;
    height: 420px;
    position: relative;
}

/* SLIDE */
.video-slide {
    display: none;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-slide.active {
    display: block;
}

.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

/* ARROWS */
.video-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    font-size: 32px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-arrow:hover {
    background: #3e7fa6;
}

/* =========================
   MODAL
========================= */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
}

.video-modal-content video {
    width: 100%;
    border-radius: 16px;
}

/* CLOSE */
.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 36px;
    color: #ffffff;
    cursor: pointer;
}


/* ================= VIDEO SECTION ================= */
.video-section {
    padding: 120px 40px;
    background: #0a1423;
    text-align: center;
}

.video-title {
    color: #fff;
    font-size: 36px;
    margin-bottom: 40px;
}

.video-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.video-frame {
    width: 720px;
    height: 420px;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,.6);
    cursor: pointer;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* arrows */
.arrow {
    width: 56px;
    height: 56px;
    font-size: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    cursor: pointer;
}

.arrow:hover {
    background: #3e7fa6;
}

/* modal */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.video-modal video {
    width: 80%;
    max-width: 900px;
}

.video-modal.active {
    display: flex;
}

.video-modal .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
}


.users-table {
    color: black;
}



/*************************/
/*        LOGIN          */
/*************************/


.card {
    background: #FFFFFF;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgb(240, 238, 238);
}

.auth-card form input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: #f8f3f3;
    border: 1px solid rgba(37, 35, 35, 0.1);
    color: #555252;
}




.btn {
    background: linear-gradient(135deg, #3e7fa6, #2f6889);
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: var(--shadow);
    text-decoration: none;
    display: inline-block;
}

.auth-switch {
    margin-top: 14px;
    color: #868282;
    text-align: center;
}

.auth-switch a {
    color: #1e3656;
    text-decoration: none;
    font-weight: 700;
}



/*************************/
/*        DASHBOARD      */
/*************************/

.container {
    max-width: 2100px;
    margin: 0 auto;
    padding: 0 20px;
}


.download {
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    color: #868282;
}



/*************************/
/*        USERS          */
/*************************/



.form-group input[type="text"], .form-group input[type="email"] {
    padding: 10px 12px;
    background: #f8f3f3;
    border: 1px solid rgba(37, 35, 35, 0.1);
    color: #555252;
    border-radius: 8px;
    font-size: 14px;
}


.form-grid input, .form-grid select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: #f8f3f3;
    border: 1px solid rgba(37, 35, 35, 0.1);
    color: #555252;
}


.users-table-wrapper {
    margin: 60px auto;
    padding: 24px;
    background: linear-gradient(180deg, #f8f3f3, #f8f3f3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.users-table thead th {
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555252;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.details-link {
     color: #1e3656;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.details-link:hover {
    color: #1e3656;
    text-decoration: underline;
}


/*************************/
/*        USER           */
/*************************/


.user-form-wrapper {
    max-width: 520px;
    margin: 80px auto;
    padding: 32px;
    background: linear-gradient(180deg, #ffffff, #ffffff);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    font-family: 'Inter', sans-serif;
    color: #555252;
}


.form-group input[type="text"], .form-group input[type="email"] {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f3f3;
    border: 1px solid rgba(37, 35, 35, 0.1);
    color: #555252;
}

.files-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #998f8f;
}


.modal {
    background: linear-gradient(180deg, #ffffff, #ffffff);
    padding: 24px;
    border-radius: 12px;
    width: 360px;
     color: #555252;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.site-header .logo img {
    height: 100px;
    width: auto;
}