body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* ============================================
   PUBLIC PAGES SPECIFIC STYLES
   Consolidated from: index.css, catalogo.css, carrito.css, checkout.css, producto.css, etc.
   ============================================ */

/* ============================================
   NAVBAR - PUBLIC PAGES
   ============================================ */

.navbar-sportstore {
    background: #111 !important;
    padding: 0.75rem 1.5rem !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 1.6rem !important;
    color: white !important;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar-brand:hover {
    color: var(--brand, #e44d26) !important;
}

.navbar-brand span {
    color: var(--brand, #e44d26);
}

/* ============================================
   HERO SECTION - HOMEPAGE
   ============================================ */

.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=1400&h=1000&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
    min-height: 500px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn-main {
    background: var(--brand, #e44d26);
    border: none;
    font-weight: bold;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.btn-main:hover {
    background: #c63d1f;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PRODUCT CARD - ALL PUBLIC PAGES
   ============================================ */

.producto-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--brand, #e44d26);
}

.producto-img {
    height: 200px;
    width: 100%;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto-card h5 {
    min-height: 70px;
    line-height: 1.3;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin: 1rem 0 0.5rem 0;
}

.producto-card p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.producto-card .d-grid {
    margin-top: auto;
    gap: 0.5rem;
}

.producto-card .d-grid .btn,
.producto-card .d-grid a.btn,
.producto-card .d-grid button.btn,
.producto-card .d-grid input[type="submit"].btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 0.75rem;
    margin: 0.25rem 0;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-custom {
    background: #111;
    color: white;
    font-weight: 600;
    border: none;
}

.btn-custom:hover {
    background: var(--brand, #e44d26);
    color: white;
}

.producto-card .d-grid .btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   CART PAGE STYLES
   ============================================ */

.carrito-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.carrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.carrito-header h1 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
}

.carrito-header a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #111;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.carrito-header a:hover {
    background: var(--brand, #e44d26);
}

.carrito-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.carrito-table thead {
    background: #111;
    color: white;
}

.carrito-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.carrito-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.carrito-table tr:last-child td {
    border-bottom: none;
}

.carrito-table tr:hover {
    background: #f9f9f9;
}

.cantidad-input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.btn-eliminar {
    display: inline-block;
    background: var(--danger, #ef4444);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-eliminar:hover {
    background: var(--danger-dark, #991b1b);
}

.carrito-acciones {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-actualizar,
.btn-vaciar,
.btn-continuar {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-actualizar {
    background: #111;
    color: white;
}

.btn-actualizar:hover {
    background: var(--brand, #e44d26);
}

.btn-vaciar {
    background: var(--danger, #ef4444);
    color: white;
}

.btn-vaciar:hover {
    background: var(--danger-dark, #991b1b);
}

.btn-continuar {
    background: var(--success, #10b981);
    color: white;
}

.btn-continuar:hover {
    background: var(--success-dark, #065f46);
}

.carrito-totales {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.total-row.grand-total {
    border-top: 2px solid #ddd;
    padding-top: 1rem;
    font-weight: 900;
    font-size: 1.25rem;
    color: #111;
}

/* ============================================
   SEARCH FORM
   ============================================ */

.search-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.search-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: #111;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-form button:hover {
    background: var(--brand, #e44d26);
}

/* ============================================
   FOOTER - PUBLIC PAGES
   ============================================ */

.footer-sportstore {
    background: #111;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--brand, #e44d26);
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 0;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--brand, #e44d26);
    padding-left: 0.5rem;
}

.footer-contact {
    font-size: 0.9rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #ccc;
}

.footer-contact a {
    color: var(--brand, #e44d26);
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

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

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.3rem !important;
    }

    .navbar-sportstore {
        padding: 0.5rem 1rem !important;
    }

    .hero {
        height: 50vh;
        min-height: 350px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-main {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .producto-img {
        height: 150px;
    }

    .carrito-table {
        font-size: 0.9rem;
    }

    .carrito-table th,
    .carrito-table td {
        padding: 0.75rem;
    }

    .producto-card h5 {
        font-size: 1rem;
        min-height: 50px;
    }

    .carrito-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .carrito-header h1 {
        font-size: 1.5rem;
    }

    .footer-sportstore {
        padding: 2rem 0 0.75rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1rem !important;
        letter-spacing: 1px;
    }

    .navbar-sportstore {
        padding: 0.4rem 0.75rem !important;
    }

    .hero {
        height: 40vh;
        min-height: 250px;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .btn-main {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .btn-outline-light {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .producto-img {
        height: 120px;
    }

    .producto-card {
        padding: 0.75rem;
    }

    .producto-card h5 {
        font-size: 0.9rem;
        min-height: 40px;
        margin: 0.5rem 0;
    }

    .producto-card .d-grid .btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .carrito-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .carrito-header h1 {
        font-size: 1.25rem;
    }

    .carrito-table {
        font-size: 0.8rem;
    }

    .carrito-table th,
    .carrito-table td {
        padding: 0.5rem;
    }

    .cantidad-input {
        width: 60px;
        padding: 0.4rem;
    }

    .carrito-acciones {
        gap: 0.5rem;
    }

    .btn-actualizar,
    .btn-vaciar,
    .btn-continuar {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .footer-sportstore {
        padding: 1.5rem 0 0.5rem;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-text,
    .footer-links a,
    .footer-contact p,
    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-success {
    color: var(--success, #10b981);
}

.text-danger {
    color: var(--danger, #ef4444);
}

.text-warning {
    color: var(--warning, #f59e0b);
}

/* ============================================
   REGISTRO PAGE STYLES
   ============================================ */

.registro-wrapper {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 620px;
    margin: 2rem auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.registro-banner {
    background: #111;
    color: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.registro-banner .icon-sport {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.85;
}

.registro-banner .logo {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.registro-banner .logo span {
    color: #e44d26;
}

.registro-banner p {
    color: #ccc;
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.7;
}

.registro-banner .beneficios {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
    text-align: left;
    max-width: 340px;
    width: 100%;
}

.registro-banner .beneficios li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 12px;
    color: #ccc;
    font-size: 0.95rem;
}

.registro-banner .beneficios li i {
    color: #e44d26;
}

.registro-form {
    background: white;
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.registro-form h2 {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin-bottom: 5px;
}

.registro-form p.subtitle {
    color: #777;
    font-size: 14px;
    margin-bottom: 28px;
}

.registro-form .form-label {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.registro-form .form-control {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 13px 15px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.registro-form .form-control:focus {
    border-color: #111;
    box-shadow: none;
}

.registro-form .input-group .form-control {
    border-right: none;
}

.registro-form .input-group-text {
    background: white;
    border: 2px solid #eee;
    border-left: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    color: #888;
}

.btn-registro {
    background: #111;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-weight: 700;
    font-size: 15px;
    width: 100%;
    margin-top: 10px;
    transition: background 0.3s ease;
    letter-spacing: 1px;
}

.btn-registro:hover {
    background: #e44d26;
}

.link-login {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 18px;
}

.link-login a {
    color: #e44d26;
    font-weight: 700;
    text-decoration: none;
}

.link-login a:hover {
    text-decoration: underline;
}

.password-strength {
    height: 10px;
    width: 100%;
    background: #eee;
    border-radius: 999px;
    margin-top: 8px;
}

.strength-text {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .registro-wrapper {
        flex-direction: column;
        min-height: auto;
        margin: 1rem;
    }

    .registro-banner,
    .registro-form {
        padding: 30px 22px;
    }

    .registro-banner .logo {
        font-size: 30px;
    }

    .registro-banner .icon-sport {
        font-size: 64px;
    }

    .btn-registro {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .registro-wrapper {
        border-radius: 8px;
    }

    .registro-banner {
        padding: 24px 16px;
    }

    .registro-form {
        padding: 24px 16px;
    }

    .registro-banner .logo {
        font-size: 24px;
    }

    .registro-banner .icon-sport {
        font-size: 50px;
    }
}

