/* Estilos específicos para index.php */

/* Resetear body para permitir secciones full-width si es necesario */
body.home-page {
    display: block;
    /* Override flex del basecolores */
    max-width: 100%;
    padding-top: 0;
    overflow-x: hidden;
    /* Prevents scrollbars from animations affecting layout width */
    /* Menu handling via margin/padding if fixed */
}

html {
    overflow-x: hidden;
    overflow-y: scroll;
    /* Force vertical scrollbar to prevent layout jump when content height changes */
}

/* --- Hero Section --- */
.hero-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    overflow: hidden;
    margin-top: -20px;
    /* Compensar padding del body si no se puede quitar */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    opacity: 0.95;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}



.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(90deg, var(--secondary-color), #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(46, 204, 113, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.hero-cta .btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-custom {
    background: var(--secondary-color);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 180, 99, 0.4);
}

.btn-primary-custom:hover {
    background: #239b56;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 180, 99, 0.5);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-custom:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-3px);
}

/* --- Stats Section within Hero --- */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white-color);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

/* --- Choferes Section --- */
.choferes-section {
    padding: 100px 0;
    background-color: var(--light-color);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-description {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cards de Choferes */
.chofer-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.chofer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.chofer-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chofer-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Mejor que cover si las fotos no son perfectas */
    transition: transform 0.6s ease;
}

.chofer-card:hover .chofer-img-wrapper img {
    transform: scale(1.05);
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.status-activo {
    background: rgba(46, 204, 113, 0.9);
    color: white;
}

.status-inactivo {
    background: rgba(231, 76, 60, 0.9);
    color: white;
}

.chofer-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chofer-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.chofer-role {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
}

.chofer-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: auto;
}

.info-item {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    width: 25px;
    color: var(--primary-color);
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-banner {
        min-height: auto !important;
        /* Eliminar altura forzada */
        padding-top: 60px !important;
        /* Mínimo absoluto para navbar */
        padding-bottom: 30px !important;
        margin-top: 0 !important;
        display: block !important;
        /* Usar display block para evitar comportamientos de centrado de flexbox */
    }

    .hero-banner .container {
        padding-top: 10px !important;
        /* Reducir padding interno */
    }

    .hero-title {
        font-size: 2.2rem;
        /* Reducido de 2.5rem */
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
        margin-top: 1.5rem;
    }

    /* Force row to not center vertically */
    .hero-banner .row {
        align-items: flex-start !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        min-height: auto !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-banner {
        /* Altura y espaciado correctos para móvil */
        min-height: auto !important;
        padding-top: 90px !important;
        padding-bottom: 40px !important;
        margin-top: 0 !important;
        display: block !important;
    }

    /* Ajuste de contenedor */
    .hero-banner .container {
        margin-top: 0 !important;
        padding-top: 10px !important;
    }

    .hero-title {
        font-size: 2rem;
        margin-top: 0;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    /* CTA Buttons: Full width on mobile */
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-bottom: 20px;
    }

    .hero-cta .btn {
        width: 100%;
        margin: 0 !important;
        justify-content: center;
        padding: 12px;
    }

    /* Stats: Grid layout 2x2 */
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 1rem;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 20px;
        justify-content: center;
    }

    .stat-item {
        text-align: center;
    }

    .stat-number {
        font-size: 1.8rem;
        display: block;
        margin-bottom: 0;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .choferes-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* --- Tracking Section --- */
.tracking-section {
    position: relative;
    margin-top: -80px;
    /* Overlap Hero */
    z-index: 10;
    margin-bottom: 80px;
}

.tracking-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.tracking-input-group {
    flex: 1;
    display: flex;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    padding: 5px 10px 5px 20px;
    transition: all 0.3s;
}

.tracking-input-group:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1);
}

.tracking-input-group input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 10px;
    outline: none;
    font-size: 1rem;
    color: var(--dark-color);
}

.btn-track {
    background: var(--dark-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-track:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Services Section --- */
.services-section {
    padding: 80px 0;
    background: white;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.4s ease;
    z-index: -1;
    opacity: 0.03;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before {
    width: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(40, 180, 99, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--secondary-color);
    color: white;
    transform: rotateY(180deg);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-text {
    color: #6c757d;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- About Section --- */
.about-section {
    padding: 100px 0;
    background: #f8fbff;
    position: relative;
    overflow: hidden;
}

.about-img-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.about-img-box img {
    width: 100%;
    transition: transform 0.5s ease;
}

.about-img-box:hover img {
    transform: scale(1.05);
}

.mission-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- Testimonials --- */
.testimonials-section {
    padding: 100px 0;
    background: white;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    text-align: center;
    margin: 20px 0;
    border: 1px solid #f1f5f9;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: -80px auto 20px;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stars {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-color), #34495e);
    color: white;
    position: relative;
}

.contact-overlay {
    background: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
    box-shadow: none;
    color: white;
}

.contact-form ::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Map placeholder styles */
.map-container {
    height: 300px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

/* -------------------------------------------------------------------------- */
/* MODERN COMMENT BUTTON & MODAL STYLES */
/* -------------------------------------------------------------------------- */

/* Modern Button for Comments */
.btn-modern-comment {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e4d3b 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-modern-comment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transition: all 0.4s ease;
    border-radius: 50px;
    z-index: -1;
}

.btn-modern-comment:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-modern-comment:hover::before {
    width: 100%;
}

.btn-modern-comment i {
    transition: transform 0.3s ease;
}

.btn-modern-comment:hover i {
    transform: rotate(15deg) scale(1.1);
}

/* Modern Modal Styles */
.modal-modern .modal-content {
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
}

.modal-modern .modal-header {
    padding: 24px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3c30 100%);
    position: relative;
}

.modal-modern .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-modern .btn-close-white:hover {
    opacity: 1;
}

/* Star Rating Custom Styles - Fixed direction and hover */
.rating-group {
    display: inline-flex;
    justify-content: center;
    position: relative;
    margin-bottom: 25px;
    direction: rtl;
    /* This is key for the CSS sibling selector trick working visually LTR */
}

.rating__input {
    position: absolute !important;
    left: -9999px !important;
}

.rating__label {
    cursor: pointer;
    font-size: 2rem;
    color: #ddd;
    transition: color 0.2s;
    margin: 0 5px;
}

/* Hover effects */
.rating__label:hover,
.rating__label:hover~.rating__label,
.rating__input:checked~.rating__label {
    color: #ffc107;
}

.rating__icon {
    pointer-events: none;
}

/* Scale animation on hover/active */
.rating__label:hover .rating__icon,
.rating__label:hover~.rating__label .rating__icon,
.rating__input:checked~.rating__label .rating__icon {
    animation: bounce 0.4s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Modern Form Fields */
.form-floating>.form-control {
    border-radius: 12px;
    border: 2px solid #f1f3f5;
    padding-left: 45px;
    /* Space for icon */
}

.form-floating>.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--rgb-primary), 0.15);
}

/* Adjust floating label position */
.form-floating>label {
    padding-left: 45px;
    z-index: 5;
}

/* Fix icon positioning inside label if needed, or just standard */
.form-floating>label>i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Submit Button */
.btn-modern-submit {
    background: var(--dark-color);
    color: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-modern-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--dark-color), var(--primary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-modern-submit:hover::before {
    opacity: 1;
}

.btn-modern-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    color: white;
}