:root {
    --primary-orange: #f46c26;
    --dark-orange: #e05a1a;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --border-radius-card: 25px;
    --border-radius-btn: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #fff;
    color: var(--text-dark);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}
.logo span { color: var(--primary-orange); }
.logo img { height: 35px; }

.nav-links {
    display: flex;
    gap: 25px;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover { color: var(--primary-orange); }

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 8px 20px;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline {
    border: 1px solid #ccc;
    background: transparent;
    color: var(--text-dark);
}

.btn-solid {
    background: var(--primary-orange);
    color: white;
    border: 1px solid var(--primary-orange);
}

.btn:hover { opacity: 0.8; }

.hero {
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: block !important;
}

.hero-slide.active {
    position: relative !important;
    height: auto !important;
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.3);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.6);
}

.slider-btn--prev { left: 20px; }
.slider-btn--next { right: 20px; }

@media (max-width: 900px) {
    .slider-btn { display: none; }
}

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: #fff;
}

.brands-bar {
    background: var(--primary-orange);
    padding: 25px 0;
}

.brands-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.brand-logo {
    color: white;
    font-weight: bold;
    font-size: 24px;
    opacity: 0.9;
    display: flex;
    align-items: center;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.brand-logo-img--ebay {
    height: 52px;
}

.steps-section {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
}
.section-title span { color: var(--primary-orange); }

.steps-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step-card {
    background: white;
    border: 2px solid #eee;
    border-radius: var(--border-radius-card);
    padding: 40px 20px;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.step-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
}

.step-img {
    height: 120px;
    margin-bottom: 20px;
}

.step-card h3 {
    color: var(--primary-orange);
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.step-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.services-section {
    background: var(--primary-orange);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.services-section .section-title { color: white; margin-bottom: 10px; }
.services-section .subtitle { margin-bottom: 50px; font-weight: 300; }
.services-section .section-title span { color: white; }

.services-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-card {
    background: white;
    border-radius: var(--border-radius-card);
    width: 260px;
    padding: 30px 15px;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card img {
    height: 100px;
    margin-bottom: 20px;
}

.service-card h4 {
    color: var(--primary-orange);
    font-size: 18px;
    font-weight: 700;
}

.branches-section {
    padding: 60px 0;
    position: relative;
}

.branches-container {
    display: flex;
    justify-content: space-between;
}

.branches-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    flex: 1;
}

.branch-item h4 {
    color: var(--primary-orange);
    font-size: 18px;
    margin-bottom: 5px;
}

.branch-item h4 span { color: var(--primary-orange); font-weight: 800; }
.branch-item { margin-bottom: 20px; }
.branch-name { font-weight: 800; color: var(--primary-orange); font-size: 18px; }
.branch-info { font-size: 14px; color: #333; line-height: 1.4; }
.branch-link {
    display: block;
    margin-top: 5px;
    text-decoration: underline;
    font-size: 13px;
}

.mascot-branches {
    width: 340px;
    align-self: flex-end;
}

.warehouses-section {
    background: var(--primary-orange);
    color: white;
    padding: 60px 0;
}

.warehouses-section .section-title {
    color: white;
    text-align: center;
}
.warehouses-section .section-title span { color: white; }

.warehouses-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.warehouses-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.warehouse-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.warehouse-item p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* --- TUTORIALES --- */
.tut-hero {
    padding: 60px 0 40px;
}

.tut-intro {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.tut-intro-img {
    flex-shrink: 0;
    width: 340px;
}

.tut-intro-img img {
    width: 100%;
    border-radius: var(--border-radius-card);
    object-fit: cover;
}

.tut-intro-text {
    flex: 1;
}

.tut-intro-text p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.tut-highlight {
    display: inline-block;
    background: var(--primary-orange);
    color: white !important;
    font-size: 20px !important;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--border-radius-btn);
    margin-bottom: 0 !important;
}

.tut-videos-section {
    padding: 20px 0 70px;
}

.tut-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.tut-video-card h4 {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.tut-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--border-radius-card);
    overflow: hidden;
}

.tut-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nav-active {
    color: var(--primary-orange);
    font-weight: 600;
}

@media (max-width: 900px) {
    .tut-intro {
        flex-direction: column;
    }
    .tut-intro-img {
        width: 100%;
    }
    .tut-videos-grid {
        grid-template-columns: 1fr;
    }
}

.footer {
    background: white;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-orange);
    text-transform: uppercase;
}
.footer-logo span { color: #555; }

.footer-info {
    text-align: right;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-orange);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transition: 0.3s;
}
.social-btn:hover { transform: scale(1.1); }

@media (max-width: 900px) {

    .branches-list { grid-template-columns: 1fr; }
    .mascot-branches { display: none; }
    header { position: static; }
    html { scroll-padding-top: 0; }
    .navbar { flex-direction: column; gap: 10px; }
    .nav-links { gap: 10px; flex-wrap: wrap; justify-content: center; }

    .brands-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .brand-logo {
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
}

.img-placeholder {
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 12px;
    text-align: center;
}

/* --- FRANQUICIA --- */
.fran-hero {
    background: var(--bg-light); /* Changed to background light to match others */
    padding: 80px 0;
}

.fran-card {
    background: white;
    border: 2px solid #eee; /* Added border to match step-card */
    border-radius: var(--border-radius-card); /* Using global variable */
    padding: 60px 40px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Added subtle shadow */
}

.fran-title {
    color: var(--primary-orange);
    font-size: 32px; /* Matched section-title */
    font-weight: 700;
    margin-bottom: 20px;
}

.fran-subtitle {
    font-size: 16px; /* Matched step-card p slightly larger */
    color: #666;
    margin-bottom: 50px;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.fran-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}

.fran-group label {
    display: block;
    font-size: 14px; /* Matched global p font size */
    font-weight: 600; /* Added weight */
    color: var(--text-dark); /* Matched global text color */
    margin-bottom: 8px;
    padding-left: 10px; /* Reduced padding */
}

.fran-group input {
    width: 100%;
    padding: 12px 20px; /* Adjusted padding */
    border: 1px solid #ccc; /* Changed to match btn-outline */
    border-radius: var(--border-radius-btn); /* Matched global buttons */
    font-size: 14px; /* Matched global font size */
    outline: none;
    transition: 0.3s;
}

.fran-group input:focus {
    border-color: var(--primary-orange);
}

.fran-submit {
    background: var(--primary-orange);
    color: white;
    border: 1px solid var(--primary-orange); /* Matched btn-solid */
    padding: 12px 50px; /* Adjusted padding */
    border-radius: var(--border-radius-btn); /* Matched global buttons */
    font-size: 16px;
    font-weight: 600; /* Matched btn */
    margin-top: 40px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fran-submit:hover {
    opacity: 0.8; /* Matched global btn hover */
}

@media (max-width: 768px) {
    .fran-form-grid {
        grid-template-columns: 1fr;
    }
    .fran-title {
        font-size: 32px;
    }
}

/* --- DESCARGAR APP --- */
.app-download-hero {
    background: var(--bg-light);
    padding: 80px 0;
    text-align: center;
}

.app-card {
    background: white;
    border: 2px solid #eee;
    border-radius: var(--border-radius-card);
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.app-title {
    color: var(--primary-orange);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.app-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.app-image {
    max-width: 300px;
    height: auto;
    margin-bottom: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-button {
    padding: 15px 30px;
    font-size: 16px;
    border-radius: var(--border-radius-btn);
    min-width: 220px;
}

.app-button i {
    margin-right: 10px;
    font-size: 20px;
}

@media (max-width: 768px) {
    .app-title {
        font-size: 28px;
    }
    .app-subtitle {
        font-size: 16px;
    }
    .app-button {
        min-width: unset;
        width: 100%;
    }
    .app-buttons {
        flex-direction: column;
    }
}

/* --- ANIMACIONES DE SCROLL --- */
.anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim.anim--left {
    transform: translateX(-50px);
}

.anim.anim--right {
    transform: translateX(50px);
}

.anim.anim--visible {
    opacity: 1;
    transform: translate(0, 0);
}

.anim.anim--exited {
    opacity: 0;
    transform: translateY(-25px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
