﻿:root {
    --primary: #d25d17;
    --primary-dark: #b03f14;
    --light: #e9ecef;
    --gray-light: #dbdbdb;
    --gray-medium: #d9d5d2;
    --dark: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* Navbar Moderna */
.navbar {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 1.2rem 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

    .navbar.scrolled {
        background-color: rgba(0, 0, 0, 0.98);
        padding: 0.8rem 0;
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    }

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
    letter-spacing: -0.5px;
}

    .navbar-brand span {
        color: var(--primary);
    }

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s;
    font-size: 0.95rem;
}

    .nav-link:hover {
        color: var(--primary) !important;
    }

    .nav-link.active {
        color: var(--primary) !important;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--primary);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after, .nav-link.active::after {
        width: 100%;
    }

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.8rem 2.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(210, 93, 23, 0.3);
    }

/* Hero Section Moderna - AJUSTES PARA MÓVIL */
.hero-section {
    background: url('../img/banner_rombos3.png');
    background-size: cover; /* Cambiado de contain a cover para mejor adaptación */
    background-position: center;
    color: white;
    padding: 180px 0 100px; /* Reducido padding superior para móviles */
    text-align: center;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    min-height: 70vh; /* Altura mínima para asegurar visibilidad */
    display: flex;
    align-items: center;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 30% 50%, rgba(210, 93, 23, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    }

    .hero-section h1 {
        font-size: 4rem;
        margin-bottom: 1.5rem;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
        letter-spacing: -1px;
        line-height: 1.1;
    }

    .hero-section p {
        font-size: 1.4rem;
        max-width: 700px;
        margin: 0 auto 2.5rem;
        font-weight: 300;
    }

/* Contenedor de botones en el hero */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* Permite que los botones se envuelvan en móviles */
}


/* Section Styles Modernas */
.section {
    padding: 120px 0;
}

.section-title {
    position: relative;
    margin-bottom: 4rem;
    text-align: center;
}

    .section-title h2 {
        font-size: 2.8rem;
        color: var(--primary-dark);
        display: inline-block;
        position: relative;
        letter-spacing: -0.5px;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
        }

/* Cards Modernas */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    margin-bottom: 2rem;
    background-color: white;
}

    .card:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    padding: 1.5rem 2rem;
    border-bottom: none;
    font-size: 1.1rem;
}

.card-body {
    padding: 2.5rem 2rem;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Process Section Moderna */
.process-step {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

    .process-step::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    }

    .process-step:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    }

    .process-step .number {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 70px;
        height: 70px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        border-radius: 50%;
        font-size: 1.8rem;
        font-weight: bold;
        margin-bottom: 1.5rem;
        box-shadow: 0 10px 20px rgba(210, 93, 23, 0.3);
    }

    .process-step h4 {
        color: var(--primary-dark);
        margin-bottom: 1.5rem;
        font-size: 1.4rem;
    }

/* Gallery Section Moderna */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 300px;
}

    .gallery-item:hover {
        transform: scale(1.05);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.1);
    }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* CTA Section Moderna */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
        animation: pulse 10s infinite linear;
    }

    .cta-section .container {
        position: relative;
        z-index: 2; /* Asegurar que el contenido esté por encima del fondo animado */
    }

@keyframes pulse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cta-section h2 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.cta-section p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.btn-light {
    background-color: white;
    color: var(--primary-dark);
    border: none;
    padding: 1rem 3rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

    .btn-light:hover {
        background-color: var(--gray-light);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

/* Footer Moderno */
footer {
    background-color: var(--dark);
    color: white;
    padding: 100px 0 40px;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

    .footer-logo span {
        color: var(--primary);
    }

.footer-links h5 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
}

    .footer-links a:hover {
        color: var(--primary);
    }

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

    .social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

        .social-icons a:hover {
            background-color: var(--primary);
            transform: translateY(-3px);
        }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: var(--gray-medium);
    font-weight: 300;
}

/* Back to Top Button Moderno */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(210, 93, 23, 0.4);
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 25px rgba(210, 93, 23, 0.5);
    }

/* Animaciones Modernas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Efectos de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Clases para mostrar/ocultar secciones */
.main-content {
    display: block;
}

.formulario-section {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .section-title h2 {
        font-size: 2.3rem;
    }

    .cta-section h2 {
        font-size: 2.5rem;
    }

    .pdf-view iframe {
        height: 540px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 150px 0 80px; /* Reducido aún más para móviles */
        min-height: 60vh; /* Altura mínima ajustada para móviles */
    }

        .hero-section h1 {
            font-size: 2.2rem;
            margin-bottom: 1.2rem;
            line-height: 1.2;
            padding: 0 15px; /* Añadido padding para evitar que toque bordes */
        }

        .hero-section p {
            font-size: 1.1rem;
            margin: 0 auto 2rem;
            padding: 0 15px; /* Añadido padding para evitar que toque bordes */
        }

    /* Botones en móviles - se apilan verticalmente */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        padding: 0 15px; /* Añadido padding para evitar que toque bordes */
    }

        .hero-buttons .btn {
            width: 100%; /* Botones ocupan todo el ancho disponible */
            max-width: 280px; /* Ancho máximo para mantener proporción */
            margin: 0; /* Eliminamos márgenes laterales */
        }

    .section {
        padding: 80px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .pdf-view iframe {
        height: 520px;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
    .hero-section {
        padding: 130px 0 60px;
        min-height: 50vh;
    }

        .hero-section h1 {
            font-size: 1.8rem;
        }

        .hero-section p {
            font-size: 1rem;
        }

    .hero-buttons .btn {
        padding: 0.7rem 1.5rem; /* Padding reducido para botones más compactos */
        font-size: 0.9rem; /* Tamaño de fuente reducido */
    }

    .pdf-view iframe {
        height: 480px;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-down {
    animation: slideDown 0.8s ease-out;
}

/*.solicitar-certificacion {
    display: none;
}*/
/* LOGOS STRIP */
.logos-strip {
    padding: 22px 0 20px;
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
    background: rgb(248 249 250);
}

.section-mini-title {
    font-family: Outfit, Inter, sans-serif;
    font-weight: 700;
    letter-spacing: -.3px;
}

.logos-marquee {
    position: relative;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgb(248 249 250);
}

.logos-track {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 14px;
    width: max-content;
    animation: marquee 22s linear infinite;
}

.logos-marquee:hover .logos-track {
    animation-play-state: paused;
}

.logo-item {
    /*width: 180px;*/
    height: 80px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding: 8px;
}

    .logo-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: all .2s ease;
    }

.logo-item-cintilla {
    height: 86px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding: 8px;
}

    .logo-item-cintilla img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: all .2s ease;
    }


@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
/* PDF */
.pdf-shell {
    overflow: hidden;
}

.pdf-toolbar {
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.pdf-view iframe {
    width: 100%;
    height: 620px;
    border: 0;
    display: block;
    background: rgba(255,255,255,.02);
}

.login-icon {
    color: #777;
    font-size: 1.2rem;
}

    .login-icon:hover {
        color: #000;
    }

.container-left {
    left: 150px !important;
}

.logo-bordeado {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.logo-margin {
    margin-top: -20px;
    width: 100px;
}

.proceso-elaboracion {
    background: #fff;
}

.img-proceso-wrapper {
    width: 100%;
    overflow: hidden;
}

.proceso-img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Ajustes móviles */
@media (max-width: 768px) {
    .proceso-elaboracion {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .proceso-img {
        border-radius: 16px;
    }
}




.proceso-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

    .proceso-timeline::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 4px;
        background: linear-gradient(to bottom, #a64024, #b01f35, #9b7138);
        transform: translateX(-50%);
        border-radius: 20px;
    }

.paso {
    display: grid;
    grid-template-columns: 1fr 130px 1fr;
    align-items: center;
    gap: 35px;
    margin-bottom: 35px;
    position: relative;
}

.paso-lado {
    display: flex;
    align-items: center;
}

    .paso-lado:first-child {
        justify-content: flex-end;
    }

    .paso-lado:last-child {
        justify-content: flex-start;
    }

.paso-centro {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.paso-num {
    font-size: 3rem;
    font-weight: 700;
    color: #a64024;
    line-height: 1;
}

.paso-icon {
    width: 95px;
    height: 95px;
    background: #a64024;
    color: #fff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    box-shadow: 0 10px 20px rgba(0,0,0,.18);
}

    .paso-icon span {
        transform: rotate(-45deg);
        font-size: 40px;
    }

    .paso-icon.rojo {
        background: #b01f35;
    }

    .paso-icon.cafe {
        background: #9b7138;
    }

    .paso-icon.naranja {
        background: #a64024;
    }

.paso-texto {
    width: 100%;
    max-width: 430px;
    background: #fff;
    padding: 22px 25px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

    .paso-texto h4 {
        font-size: 1.35rem;
        font-weight: 700;
        margin-bottom: 8px;
        color: #111;
    }

    .paso-texto p {
        margin: 0;
        color: #333;
        font-size: 1rem;
        line-height: 1.5;
    }

/* Responsive */
@media (max-width: 768px) {
    .proceso-timeline::before {
        left: 35px;
    }

    .paso {
        grid-template-columns: 70px 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }

    .paso-lado {
        display: block;
    }

        .paso-lado:first-child,
        .paso-lado:last-child {
            justify-content: initial;
        }

    .paso-centro {
        grid-column: 1;
        grid-row: 2;
    }

    .paso-num {
        grid-column: 1;
        grid-row: 1;
        font-size: 1.6rem;
        text-align: center;
        display: block;
    }

    .paso .paso-lado:has(.paso-texto) {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .paso-texto,
    .paso-texto.text-end {
        max-width: 100%;
        text-align: left !important;
        padding: 18px;
    }

    .paso-icon {
        width: 62px;
        height: 62px;
        border-radius: 16px;
    }

        .paso-icon span {
            font-size: 28px;
        }

    .paso-texto h4 {
        font-size: 1.1rem;
    }

    .paso-texto p {
        font-size: .92rem;
    }
}