/* =========================================
   ESTILOS BASE Y GLOBALES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   ACCESIBILIDAD
   ========================================= */
:focus {
    outline: 2px solid #c41e3a;
    outline-offset: 2px;
}

/* =========================================
   HEADER
   ========================================= */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: #000;
    flex-wrap: wrap;
}

.logo-img {
    height: 50px;
    width: auto;
}

.search-bar {
    display: flex;
    align-items: center;
    border: 2px solid #fff;
    border-radius: 25px;
    padding: 8px 15px;
    width: 300px;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    width: 100%;
}

.search-icon,
.cart-icon {
    width: 18px;
    height: 18px;
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* =========================================
   HERO (común)
   ========================================= */
.hero {
    position: relative;
    height: 350px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    font-size: 120px;
    font-weight: bold;
    color: #c41e3a;
    font-style: italic;
    letter-spacing: -8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Navegación lateral (escritorio) */
.side-nav {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
}

.nav-link {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    transition: color 0.3s;
}

.nav-link.active,
.nav-link:hover {
    color: #c41e3a;
}

/* =========================================
   SECCIONES DE CONTENIDO (index)
   ========================================= */
.content-section {
    padding: 40px 60px;
}

.content-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.content-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: inline-block;
    line-height: 0;
    border: 2px solid #fff;
    background-color: #000;
}

.content-image::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid #c41e3a;
    background-color: transparent;
    z-index: -1;
    transition: all 0.3s ease;
}

.content-image:hover::before {
    top: -10px;
    left: -10px;
}

.content-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.content-image:hover img {
    transform: scale(1.02);
}

.content-image.red-bg {
    border-color: #c41e3a;
}

.content-image.red-bg::before {
    border-color: #fff;
}

.sweatshirt-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    font-style: italic;
    letter-spacing: -3px;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.content-text {
    flex: 1;
    max-width: 500px;
}

.content-text p {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.4;
}

/* =========================================
   FOOTER
   ========================================= */
.footer-banner {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.footer-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    background-color: #000;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #c41e3a;
}

.newsletter {
    display: flex;
    border: 1px solid #fff;
    border-radius: 25px;
    overflow: hidden;
}

.newsletter-input {
    background: transparent;
    border: none;
    padding: 10px 20px;
    color: #fff;
    font-size: 12px;
    width: 186px;
    outline: none;
}

.newsletter-input::placeholder {
    color: #888;
}

.newsletter-btn {
    background: transparent;
    border: none;
    border-left: 1px solid #fff;
    padding: 15px 35px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-text {
    font-size: 15px;
}

/* =========================================
   PÁGINA NOSOTROS
   ========================================= */
.nosotros-container {
    padding-bottom: 50px;
}

.nosotros-section {
    padding: 60px 10%;
    border-bottom: 1px solid #1a1a1a;
    display: none;
}

.nosotros-section:first-of-type {
    display: block;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.text-block h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.text-block h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.text-block p {
    color: #ccc;
    font-size: 1.1rem;
}

.image-block {
    position: relative;
    display: inline-block;
    line-height: 0;
    border: 2px solid #fff;
    background-color: #000;
}

.image-block::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid #c41e3a;
    background-color: transparent;
    z-index: -1;
    transition: all 0.3s ease;
}

.image-block:hover::before {
    top: -10px;
    left: -10px;
}

.image-block img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    filter: grayscale(20%);
    transition: transform 0.4s ease;
}

.image-block:hover img {
    transform: scale(1.02);
}

.metodo-list,
.fases-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.metodo-list li,
.fases-list li {
    margin-bottom: 15px;
    color: #eee;
}

.brand-graphic {
    display: flex;
    justify-content: center;
}

.vertical-logo-img {
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    transform: rotate(90deg);
}

.pink-99 {
    color: #c41e3a;
    font-size: 120px;
}

.white-text {
    font-size: 40px;
    letter-spacing: 2px;
}

.cta-block {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 0;
}

.cta-block h3 {
    font-size: 2rem;
    margin-top: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.dot {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.dot.active {
    background-color: #c41e3a;
    color: #fff;
}

/* =========================================
   PÁGINA PORTAFOLIO
   ========================================= */
.portfolio-container {
    position: relative;
    min-height: 100vh;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    padding: 80px 10%;
}

.portfolio-item {
    display: flex;
    align-items: center;
    gap: 30px;
    grid-column: span 3;
}

.portfolio-image {
    flex: 1;
    position: relative;
    display: inline-block;
    line-height: 0;
    border: 2px solid #fff;
    background-color: #000;
}

.portfolio-image::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid #c41e3a;
    background-color: transparent;
    z-index: -1;
    transition: all 0.3s ease;
}

.portfolio-image:hover::before {
    top: -10px;
    left: -10px;
}

.portfolio-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s;
}

.portfolio-image:hover img {
    transform: scale(1.02);
}

.storytelling-item .portfolio-image img {
    filter: grayscale(100%);
}

.storytelling-item .portfolio-image:hover img {
    filter: grayscale(0%);
}

.portfolio-text h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
}

.ver-mas {
    font-size: 1rem;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    display: inline-block;
    margin-bottom: 15px;
}

.ver-mas:hover {
    border-bottom: 1px solid #c41e3a;
}

.branding-item {
    grid-column: 2 / 5;
    flex-direction: row-reverse;
}

.identidad-item {
    grid-column: 1 / 4;
}

/* =========================================
   PÁGINA TIENDA
   ========================================= */
.shop-container {
    background-color: #000;
}

.shop-nav {
    display: flex;
    justify-content: center;
    margin: 50px 0 40px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 20px;
}

.categories {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.cat-link {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #888;
    transition: color 0.3s;
    text-transform: uppercase;
}

.cat-link.active,
.cat-link:hover {
    color: #c41e3a;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 50px;
    padding: 0 10% 80px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background-color: #000;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background-color: #111;
    border-radius: 4px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(196, 30, 58, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom 0.3s ease;
}

.product-card:hover .product-overlay {
    bottom: 0;
}

.product-card:hover img {
    transform: scale(1.05);
}

.add-to-cart {
    background: transparent;
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    width: 100%;
    height: 100%;
    transition: background 0.2s;
}

.add-to-cart:hover {
    background: rgba(255, 255, 255, 0.1);
}

.product-info {
    padding: 18px 0 10px;
    text-align: left;
}

.product-info h3 {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
    color: #fff;
}

.price {
    color: #c41e3a;
    font-weight: bold;
    font-size: 16px;
}

/* =========================================
   PÁGINA PRODUCTO (detalle)
   ========================================= */
.product-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.product-detail {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    background: #000;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-detail-image {
    flex: 1;
    min-width: 280px;
}

.product-detail-image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-detail-info .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #c41e3a;
    margin: 1rem 0;
}

.product-detail-info #sizeSelector {
    margin: 1.5rem 0;
}

.product-detail-info #sizeSelector select {
    padding: 0.5rem 1rem;
    border-radius: 40px;
    border: 1px solid #ccc;
    margin-left: 1rem;
}

.add-to-cart-btn {
    background: #1e2a3e;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    margin: 1rem 0;
    transition: 0.2s;
}

.add-to-cart-btn:hover {
    background: #c41e3a;
}

.back-to-shop {
    display: inline-block;
    margin-top: 1rem;
    color: #666;
    text-decoration: none;
}

.back-to-shop:hover {
    text-decoration: underline;
}

.product-link {
    text-decoration: none;
    display: block;
}

/* =========================================
   MODALES
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal-content {
    background-color: #111;
    margin: auto;
    padding: 30px;
    border: 1px solid #c41e3a;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #c41e3a;
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 28px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #c41e3a;
}

.forgot-password {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-password a {
    color: #c41e3a;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-password a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #c41e3a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: #a01830;
}

.access-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
}

.access-btn:hover {
    color: #c41e3a;
}

/* =========================================
   CHECKOUT
   ========================================= */
.checkout-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.checkout-form {
    flex: 2;
    min-width: 280px;
    background: #111;
    border-radius: 28px;
    padding: 2rem;
    border: 1px solid #c41e3a;
}

.checkout-summary {
    flex: 1.2;
    min-width: 280px;
    background: #111;
    border-radius: 28px;
    padding: 2rem;
    border: 1px solid #c41e3a;
    align-self: flex-start;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: #222;
    border: 1px solid #444;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-method {
    background: #222;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-size: 0.9rem;
    border: 1px solid #444;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method.selected {
    border-color: #c41e3a;
    background: #c41e3a;
    color: white;
}

.total-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #c41e3a;
    margin: 1rem 0;
}

.btn-pagar {
    width: 100%;
    background: #c41e3a;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-pagar:hover {
    background: #a01830;
}

.cupon-btn {
    background: transparent;
    border: 1px solid #c41e3a;
    color: #c41e3a;
    padding: 0.6rem 1rem;
    border-radius: 40px;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.summary-total {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 1rem;
    text-align: right;
    border-top: 2px solid #c41e3a;
    padding-top: 1rem;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: #c41e3a;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* =========================================
   MENÚ HAMBURGUESA Y RESPONSIVE
   ========================================= */
.mobile-menu-btn {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    background: #c41e3a;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 992px) {
    .content-row {
        gap: 40px;
    }
    .content-text p {
        font-size: 22px;
    }
    .portfolio-grid {
        gap: 40px;
        padding: 60px 5%;
    }
    .portfolio-text h2 {
        font-size: 2rem;
    }
    .products-grid {
        gap: 40px;
        padding: 0 5% 60px 5%;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .search-bar {
        width: 80%;
    }
    .hero {
        height: 280px;
    }
    .hero-logo {
        font-size: 80px;
    }
    .nav-link {
        font-size: 16px;
    }
    .content-section {
        padding: 30px 20px;
    }
    .content-row {
        flex-direction: column;
        gap: 30px;
    }
    .content-image,
    .content-text {
        max-width: 100%;
    }
    .content-image img {
        height: 280px;
    }
    .footer {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .footer-left,
    .footer-right {
        text-align: center;
    }

    /* Forzar imagen arriba y texto abajo en index */
    .content-row {
        flex-direction: column;
    }
    .content-image {
        order: 1;
    }
    .content-text {
        order: 2;
    }

    /* Nosotros responsive */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .pink-99 {
        font-size: 80px;
    }
    .white-text {
        font-size: 30px;
    }
    .nosotros-section {
        padding: 40px 20px;
    }
    .text-block h1 {
        font-size: 2rem;
    }
    .image-block img {
        height: 250px;
    }

    /* Forzar imagen arriba y texto abajo en nosotros */
    .content-grid {
        display: flex !important;
        flex-direction: column;
    }
    .content-grid .image-block {
        order: 1;
    }
    .content-grid .text-block {
        order: 2;
    }
    .content-grid.reverse {
        display: flex !important;
        flex-direction: column;
    }
    .content-grid.reverse .image-block {
        order: 1;
    }
    .content-grid.reverse .text-block {
        order: 2;
    }

    /* Portafolio responsive */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .portfolio-item {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }
    .branding-item {
        grid-column: span 1;
        flex-direction: column;
    }
    .portfolio-image img {
        height: 280px;
    }
    .portfolio-text h2 {
        font-size: 1.8rem;
    }
    /* Asegurar imagen arriba en portafolio */
    .portfolio-item .portfolio-image {
        order: 1;
    }
    .portfolio-item .portfolio-text {
        order: 2;
    }

    /* Tienda responsive */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0 20px 50px 20px;
    }
    .product-info h3 {
        font-size: 12px;
    }
    .price {
        font-size: 14px;
    }
    .shop-nav {
        margin: 30px 0;
    }
    .categories {
        gap: 20px;
    }
    .cat-link {
        font-size: 12px;
    }

    /* Checkout responsive */
    .checkout-container {
        flex-direction: column;
    }
    .product-overlay {
        height: 48px;
        bottom: -48px;
    }
    .add-to-cart {
        font-size: 10px;
    }

    /* Asegurar que el botón ACCESO sea cliqueable en móvil */
    .header-actions {
        position: relative;
        z-index: 1002;
    }
    .access-btn, .cart-icon {
        position: relative;
        z-index: 1002;
        cursor: pointer;
    }
    .mobile-menu-btn {
        z-index: 1001;
    }

    /* Menú hamburguesa móvil */
    .mobile-menu-btn {
        display: flex;
    }

    .side-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        left: auto;
        transform: none;
        flex-direction: column;
        background: #111;
        width: 250px;
        height: auto;
        border-radius: 20px;
        padding: 1rem;
        gap: 0.5rem;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 2px 10px rgba(0,0,0,0.5);
    }

    .side-nav.open {
        right: 20px;
    }

    .side-nav .nav-link {
        display: block;
        text-align: center;
        padding: 12px;
        border-bottom: 1px solid #333;
        background: transparent;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        font-size: 50px;
        letter-spacing: -4px;
    }
    .hero {
        height: 220px;
    }
    .nav-link {
        font-size: 14px;
    }
    .content-text p {
        font-size: 18px;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
}