/* Estilos adicionales para el nuevo diseño - index.php */
/* Optimización de carga de fuentes */
@font-face {
    font-display: swap;
}

:root {
    --color-primary: #FF6B35;
    --color-dark: #1a1a1a;
    --color-light: #f5f5f5;
}

/* Lazy Loading - Placeholder y transiciones */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Efecto suave al cargar imagen */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
    animation: none;
    background: transparent;
}

/* Prevenir layout shift */
img {
    max-width: 100%;
    height: auto;
}

.hero-new {
    background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
    min-height: 90vh;
    color: white;
    padding: 80px 0 60px;
    position: relative;
}

.badge-years {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 30px;
}

.hero-new h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-new h1 span {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

.hero-new .lead {
    font-size: 1.3rem;
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 600;
}

.hero-new .sub-text {
    color: #808080;
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.btn-conocer {
    background: var(--color-primary);
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-right: 15px;
    transition: all 0.3s;
}

.btn-conocer:hover {
    background: #e55a2b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-demo {
    background: transparent;
    color: white;
    padding: 15px 35px;
    border: 1px solid #444;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-demo:hover {
    background: #2c2c2c;
    color: white;
    border-color: #666;
}

.stats-hero {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #333;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-number.orange {
    color: var(--color-primary);
}

.stat-number.green {
    color: #4CAF50;
}

.stat-label {
    color: #808080;
    font-size: 0.95rem;
}

.history-section {
    background: white;
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}

.section-title span {
    color: var(--color-primary);
}

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline-item {
    position: relative;
    padding-bottom: 60px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 8px;
    width: 15px;
    height: 15px;
    background: var(--color-primary);
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -29px;
    top: 23px;
    width: 3px;
    height: calc(100% - 15px);
    background: #e0e0e0;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-year {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.quote-box {
    background: #f9f9f9;
    padding: 40px;
    border-left: 4px solid var(--color-primary);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.team-stats {
    background: #f5f5f5;
    padding: 60px 0;
}

.team-stat {
    text-align: center;
    margin-bottom: 30px;
}

.team-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.team-stat-number.orange {
    color: var(--color-primary);
}

.team-stat-number.green {
    color: #4CAF50;
}

.team-stat-label {
    color: #666;
    font-size: 0.95rem;
}

.challenges-section {
    background: white;
    padding: 100px 0;
}

.challenge-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s;
    height: 100%;
}

.challenge-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.challenge-icon {
    width: 50px;
    height: 50px;
    background: #fff0ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.challenge-icon i {
    color: var(--color-primary);
    font-size: 24px;
}

.challenge-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.challenge-text {
    color: #666;
    line-height: 1.6;
}

.challenge-stat {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 15px;
}

.challenge-stat-label {
    font-size: 0.85rem;
    color: #999;
}

.solutions-section {
    background: #f9f9f9;
    padding: 100px 0;
}

.section-subtitle {
    color: var(--color-primary);
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-card img {
    max-width: 20em;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.product-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.badge-star {
    background: #fff4e6;
    color: var(--color-primary);
}

.badge-required {
    background: #ffebee;
    color: #c62828;
}

.badge-growth {
    background: #e8f5e9;
    color: #2e7d32;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-subtitle {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.product-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.product-features li {
    padding: 8px 0;
    color: #333;
}

.product-features li i {
    color: var(--color-primary);
    margin-right: 10px;
}

.product-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-product-primary {
    background: var(--color-primary);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-product-primary:hover {
    background: #e55a2b;
    color: white;
    transform: translateY(-2px);
}

.btn-product-secondary {
    color: var(--color-primary);
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-product-secondary:hover {
    color: #e55a2b;
}

.product-testimonial {
    background: #f9f9f9;
    padding: 20px;
    border-left: 3px solid var(--color-primary);
    border-radius: 8px;
}

.testimonial-stars {
    color: #ffa726;
    margin-bottom: 10px;
}

.testimonial-text {
    font-style: italic;
    color: #333;
    margin-bottom: 10px;
}

.testimonial-author {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.testimonial-role {
    color: #999;
    font-size: 0.85rem;
}

.product-result {
    text-align: center;
    margin-top: 20px;
}

.result-label {
    color: #999;
    font-size: 0.9rem;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2e7d32;
}

.also-help-section {
    background: white;
    padding: 80px 0;
}

.help-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.help-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.help-card h3 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.help-card p {
    color: #666;
    font-size: 0.95rem;
}

.footer-stats {
    background: #1a1a1a;
    color: white;
    padding: 60px 0;
}

.footer-stat {
    text-align: center;
}

.footer-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.footer-stat-label {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.testimonials-section {
    background: #1a1a1a;
    color: white;
    padding: 100px 0;
}

.testimonial-card {
    background: #2c2c2c;
    border-radius: 12px;
    padding: 35px;
    height: 100%;
}

.testimonial-card .testimonial-text {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-card .testimonial-author {
    color: white;
    font-weight: 700;
}

.testimonial-card .testimonial-role {
    color: #b0b0b0;
}

.testimonial-badge {
    display: inline-block;
    background: rgba(255, 107, 53, 0.2);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 15px;
}

.cta-section {
    background: white;
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: white;
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: var(--color-primary);
    color: white;
    padding: 16px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-cta-primary:hover {
    background: #e55a2b;
    color: white;
    transform: translateY(-2px);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    padding: 16px 40px;
    border: 1px solid #444;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-cta-secondary:hover {
    background: #2c2c2c;
    color: white;
    border-color: #666;
}

.cta-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4CAF50;
    font-size: 0.95rem;
}

.contact-options {
    background: #f9f9f9;
    padding: 60px 0;
}

.contact-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #fff0ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon i {
    color: var(--color-primary);
    font-size: 28px;
}

.contact-card h3 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.contact-card .contact-value {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-card .contact-time {
    color: #999;
    font-size: 0.9rem;
}

.new-footer {
    background: #1a1a1a;
    color: white;
    padding: 80px 0 30px;
}

.footer-logo-section {
    margin-bottom: 30px;
}

.footer-description {
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contact-item {
    color: #b0b0b0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-item i {
    color: var(--color-primary);
}

.footer-links h3 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    color: #808080;
}

/* Responsive Styles */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
    .hero-new {
        padding: 60px 0 40px;
        min-height: auto;
    }

    .hero-new h1 {
        font-size: 2.5rem;
    }

    .hero-new .lead {
        font-size: 1.1rem;
    }

    .product-card {
        padding: 30px;
    }

    .product-card img {
        max-width: 15em;
    }

    .timeline {
        padding-left: 30px;
    }

    .cta-box {
        padding: 50px 30px;
    }

    .cta-box h2 {
        font-size: 2rem;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .hero-new h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-new .lead {
        font-size: 1rem;
    }

    .hero-new .sub-text {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .stats-hero {
        margin-top: 50px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .product-card {
        padding: 25px;
    }

    .product-card img {
        max-width: 12em;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
        margin-bottom: 10px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .btn-conocer,
    .btn-demo {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .cta-box {
        padding: 40px 25px;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }

    .cta-box p {
        font-size: 1rem;
    }

    .timeline-title {
        font-size: 1.2rem;
    }

    .quote-box {
        padding: 25px;
        font-size: 1rem;
    }

    .footer-stat-number {
        font-size: 2rem;
    }

    .contact-card {
        padding: 30px;
        margin-bottom: 20px;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .hero-new {
        padding: 40px 0 30px;
    }

    .hero-new h1 {
        font-size: 1.5rem;
    }

    .badge-years {
        font-size: 12px;
        padding: 6px 15px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .product-card img {
        max-width: 10em;
    }

    .product-features li {
        font-size: 0.9rem;
    }

    .btn-conocer,
    .btn-demo {
        margin-bottom: 10px;
        margin-right: 0;
        display: block;
        text-align: center;
    }

    .cta-features {
        gap: 15px;
    }

    .cta-feature {
        font-size: 0.85rem;
    }

    .stat-number,
    .footer-stat-number,
    .team-stat-number {
        font-size: 1.8rem;
    }

    .product-badge {
        display: block;
        margin-left: 0 !important;
        margin-bottom: 8px;
    }
}
