/**
 * Tecnorep - Home Page CSS
 * Estilos específicos para la página de inicio
 *
 * @package Tecnorep
 * @since 1.0.0
 */

/* ================================================================
   HERO SECTION
   ================================================================ */

.trp-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--trp-mediterraneo-dark) 0%, var(--trp-zafiro) 100%);
    overflow: hidden;
    padding: 80px 0;
}

.trp-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.trp-hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.trp-hero__text {
    color: white;
}

.trp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.trp-hero__badge .trp-icon {
    width: 16px;
    height: 16px;
    color: var(--trp-turquesa-light);
}

.trp-hero__title {
    font-family: var(--trp-font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: white;
}

.trp-hero__title-accent {
    display: block;
    color: var(--trp-turquesa-light);
}

.trp-hero__subtitle {
    font-family: var(--trp-font-subheading);
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.trp-hero__description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.trp-hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.trp-hero__btn {
    min-width: 160px;
}

.trp-hero__features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.trp-hero__feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--trp-border-radius);
    backdrop-filter: blur(10px);
    transition: all var(--trp-transition);
}

.trp-hero__feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

.trp-hero__feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--trp-turquesa);
    border-radius: var(--trp-border-radius);
    flex-shrink: 0;
}

.trp-hero__feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.trp-hero__feature-text h4 {
    font-family: var(--trp-font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.trp-hero__feature-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ================================================================
   SECTION HEADERS
   ================================================================ */

.trp-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.trp-section-header__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(31, 138, 159, 0.1);
    color: var(--trp-turquesa);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.trp-section-header__title {
    font-family: var(--trp-font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--trp-heading);
    margin-bottom: 16px;
    line-height: 1.3;
}

.trp-section-header__subtitle {
    font-size: 1.0625rem;
    color: var(--trp-text-light);
    line-height: 1.6;
    margin: 0;
}

.trp-section-alt {
    background: var(--trp-bg-alt);
}

/* ================================================================
   BRANDS CAROUSEL
   ================================================================ */

.trp-brands-section {
    padding: 60px 0;
}

.trp-brands-carousel {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.trp-brands-carousel__track {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.trp-brands-carousel__track::-webkit-scrollbar {
    display: none;
}

.trp-brands-carousel__item {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--trp-bg);
    border: 1px solid var(--trp-border);
    border-radius: var(--trp-border-radius);
    transition: all var(--trp-transition);
}

.trp-brands-carousel__item:hover {
    border-color: var(--trp-primary);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px var(--trp-shadow);
}

.trp-brands-carousel__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trp-brands-carousel__logo-text {
    font-family: var(--trp-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--trp-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================================================
   SERVICES GRID
   ================================================================ */

.trp-services-section {
    padding: 80px 0;
}

.trp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.trp-service-card {
    display: flex;
    flex-direction: column;
    background: var(--trp-bg);
    border: 1px solid var(--trp-border);
    border-radius: var(--trp-border-radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--trp-transition), box-shadow var(--trp-transition), border-color var(--trp-transition);
}

.trp-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px var(--trp-shadow-md);
    border-color: var(--trp-mediterraneo);
}

.trp-service-card__media {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: var(--trp-gris-100);
}

.trp-service-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--trp-transition-slow);
}

.trp-service-card:hover .trp-service-card__img {
    transform: scale(1.06);
}

.trp-service-card__media-icon {
    position: absolute;
    left: 16px;
    bottom: -18px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--trp-mediterraneo); /* azul institucional */
    color: var(--trp-blanco);
    border-radius: 50%;
    border: 3px solid var(--trp-bg);
    box-shadow: 0 4px 12px var(--trp-shadow-md);
}

.trp-service-card__media-icon svg { width: 20px; height: 20px; }

.trp-service-card__inner {
    padding: 28px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trp-service-card__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: var(--trp-mediterraneo-dark);
    color: var(--trp-blanco);
    border-radius: 50%;
    margin-bottom: 14px;
}

.trp-service-card__icon--solo { background: var(--trp-mediterraneo); }

.trp-service-card__icon svg { width: 26px; height: 26px; }

.trp-service-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--trp-heading);
    margin: 0 0 8px;
}

.trp-service-card__desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--trp-text);
    margin: 0 0 14px;
    flex: 1;
}

.trp-service-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--trp-mediterraneo);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.trp-service-card__btn .trp-icon { width: 14px; height: 14px; transition: transform var(--trp-transition); }
.trp-service-card:hover .trp-service-card__btn .trp-icon { transform: translateX(4px); }

.trp-services-cta {
    text-align: center;
}

/* ================================================================
   ORDER TRACKER
   ================================================================ */

.trp-tracker-section {
    padding: 80px 0;
}

.trp-tracker-widget {
    max-width: 600px;
    margin: 0 auto;
    background: var(--trp-bg);
    border: 1px solid var(--trp-border);
    border-radius: var(--trp-border-radius-lg);
    padding: 40px;
    box-shadow: 0 4px 20px var(--trp-shadow);
}

.trp-tracker-widget__form {
    margin-bottom: 30px;
}

.trp-tracker-widget__input-group {
    display: flex;
    gap: 12px;
}

.trp-tracker-widget__input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--trp-border);
    border-radius: var(--trp-border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 1px;
    transition: border-color var(--trp-transition);
}

.trp-tracker-widget__input:focus {
    border-color: var(--trp-primary);
    outline: none;
}

.trp-tracker-widget__result {
    margin-top: 30px;
}

.trp-tracker-widget__steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.trp-tracker-widget__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.trp-tracker-widget__step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--trp-bg);
    border: 3px solid var(--trp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all var(--trp-transition);
}

.trp-tracker-widget__step.completed .trp-tracker-widget__step-dot {
    background: var(--trp-exito);
    border-color: var(--trp-exito);
    color: white;
}

.trp-tracker-widget__step.active .trp-tracker-widget__step-dot {
    border-color: var(--trp-primary);
    background: var(--trp-primary);
    color: white;
    animation: trp-pulse 2s infinite;
}

.trp-tracker-widget__step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--trp-text-light);
    text-align: center;
}

.trp-tracker-widget__step.completed .trp-tracker-widget__step-label,
.trp-tracker-widget__step.active .trp-tracker-widget__step-label {
    color: var(--trp-text-dark);
    font-weight: 600;
}

.trp-tracker-widget__step-line {
    flex: 1;
    height: 3px;
    background: var(--trp-border);
    margin: 0 -10px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.trp-tracker-widget__step.completed + .trp-tracker-widget__step-line {
    background: var(--trp-exito);
}

/* ================================================================
   PRODUCTS GRID
   ================================================================ */

.trp-products-section {
    padding: 80px 0;
}

.trp-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.trp-products-cta {
    text-align: center;
}

/* ================================================================
   STATS SECTION
   ================================================================ */

.trp-stats-section {
    padding: 80px 0;
}

.trp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.trp-stats-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--trp-bg);
    border: 1px solid var(--trp-border);
    border-radius: var(--trp-border-radius);
    transition: all var(--trp-transition);
}

.trp-stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--trp-shadow-md);
    border-color: var(--trp-primary);
}

.trp-stats-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 138, 159, 0.1);
    border-radius: var(--trp-border-radius);
    color: var(--trp-primary);
}

.trp-stats-card__icon svg {
    width: 28px;
    height: 28px;
}

.trp-stats-card__number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.trp-stats-card__number {
    font-family: var(--trp-font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--trp-mediterraneo);
    line-height: 1;
}

.trp-stats-card__suffix {
    font-family: var(--trp-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--trp-primary);
}

.trp-stats-card__label {
    font-family: var(--trp-font-subheading);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--trp-text);
    margin: 0;
}

/* ================================================================
   CTA SECTION
   ================================================================ */

.trp-cta-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--trp-mediterraneo) 0%, var(--trp-turquesa-dark) 100%);
    overflow: hidden;
}

.trp-cta-section__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.trp-cta-section__content {
    position: relative;
    z-index: 2;
}

.trp-cta-section__inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.trp-cta-section__title {
    font-family: var(--trp-font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.trp-cta-section__text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.trp-cta-section__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.trp-cta-section__btn {
    min-width: 180px;
}

.trp-cta-section__info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trp-cta-section__info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

.trp-cta-section__info-item .trp-icon {
    width: 18px;
    height: 18px;
    color: var(--trp-turquesa-light);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
    .trp-hero__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trp-hero__features {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .trp-hero {
        min-height: auto;
        padding: 60px 0;
    }

    .trp-hero__buttons {
        flex-direction: column;
    }

    .trp-hero__btn {
        width: 100%;
    }

    .trp-brands-carousel__item {
        width: 120px;
        height: 60px;
    }

    .trp-tracker-widget {
        padding: 24px;
    }

    .trp-tracker-widget__input-group {
        flex-direction: column;
    }

    .trp-tracker-widget__steps {
        flex-wrap: wrap;
        gap: 16px;
    }

    .trp-tracker-widget__step-line {
        display: none;
    }

    .trp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .trp-stats-card {
        padding: 20px 16px;
    }

    .trp-stats-card__number {
        font-size: 2rem;
    }

    .trp-cta-section__info {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .trp-stats-grid {
        grid-template-columns: 1fr;
    }
}
