/* =========================================
   VARIABLES
========================================= */

:root {
    --primary: #e33535;
    --primary-dark: #b91f1f;
    --yellow: #ffcb05;
    --blue: #2468b1;
    --dark: #151515;
    --gray: #666;
    --light: #f5f6fa;
    --white: #ffffff;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --radius: 18px;
}


/* =========================================
   RESETEO
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 75px;
    padding: 0 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.logo {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--blue);
}

.logo span {
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.nav a:hover {
    color: var(--primary);
}

.cart-button {
    border: none;
    background: var(--primary);
    color: white;

    padding: 10px 18px;
    border-radius: 30px;

    cursor: pointer;
    font-weight: bold;

    transition: 0.3s;
}

.cart-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

#contador-carrito {
    background: var(--yellow);
    color: var(--dark);

    padding: 2px 7px;
    border-radius: 50%;
    margin-left: 4px;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 600px;
    padding: 80px 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        radial-gradient(
            circle at 80% 40%,
            rgba(255, 203, 5, 0.25),
            transparent 35%
        ),
        linear-gradient(135deg, #ffffff, #eaf2ff);
}

.hero-content {
    max-width: 600px;
}

.subtitle {
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1;
    margin: 20px 0;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero-content > p:not(.subtitle) {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;

    border: none;
    background: var(--primary);
    color: white;

    padding: 14px 28px;
    border-radius: 10px;

    text-decoration: none;
    font-weight: bold;
    cursor: pointer;

    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(227, 53, 53, 0.25);
}


/* =========================================
   CARTA HERO
========================================= */

.hero-card {
    perspective: 1000px;
}

.pokemon-card {
    width: 290px;
    min-height: 410px;

    padding: 18px;

    border-radius: 18px;
    border: 8px solid var(--yellow);

    background: linear-gradient(
        145deg,
        #fff8c8,
        #f8b800
    );

    box-shadow:
        0 25px 40px rgba(0, 0, 0, 0.25),
        inset 0 0 0 2px white;

    transform: rotate(5deg);
    transition: 0.5s;
}

.pokemon-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.pokemon-image {
    height: 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 15px 0;

    border-radius: 10px;

    font-size: 7rem;

    background:
        radial-gradient(
            circle,
            #fff 10%,
            #75b9ef 45%,
            #2878b8 100%
        );
}

.pokemon-card h3 {
    font-size: 1.7rem;
}

.pokemon-card > p {
    color: #555;
}

.attack {
    margin-top: 25px;
    padding: 12px;

    display: flex;
    gap: 10px;
    align-items: center;

    border-top: 2px solid rgba(0, 0, 0, 0.2);

    font-weight: bold;
}

.attack strong {
    margin-left: auto;
}


/* =========================================
   SECCIONES
========================================= */

.section {
    padding: 90px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title p {
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 2.5rem;
}


/* =========================================
   MISIÓN / VISIÓN / OBJETIVOS
========================================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.info-card {
    padding: 35px;
    background: white;

    border-radius: var(--radius);

    text-align: center;
    box-shadow: var(--shadow);

    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-8px);
}

.info-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff0f0;
    border-radius: 50%;

    font-size: 2rem;
}

.info-card h3 {
    margin-bottom: 12px;
    color: var(--blue);
}


/* =========================================
   RESULTADOS
========================================= */

.results-section {
    padding: 80px 8%;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;

    background: #111827;
    color: white;
}

.result-box {
    padding: 35px;

    border-radius: var(--radius);

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.result-box h2 {
    margin-bottom: 20px;
}

.result-box ul {
    list-style: none;
}

.result-box li {
    margin: 12px 0;
    padding-left: 25px;
    position: relative;
}

.result-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--yellow);
    font-weight: bold;
}


/* =========================================
   CATÁLOGO
========================================= */

.catalog-section {
    background: #f1f4f8;
}

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(230px, 1fr));

    gap: 25px;
}

.product {
    background: white;

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow: var(--shadow);

    transition: 0.3s;
}

.product:hover {
    transform: translateY(-7px);
}

.product-image {
    height: 230px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 5rem;

    background:
        linear-gradient(
            135deg,
            #dbeafe,
            #fef3c7
        );
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 5px;
}

.product-type {
    color: #777;
    font-size: 0.9rem;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 18px;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
}

.add-cart {
    border: none;

    background: var(--blue);
    color: white;

    padding: 9px 14px;
    border-radius: 8px;

    cursor: pointer;
    font-weight: bold;

    transition: 0.3s;
}

.add-cart:hover {
    background: #174d88;
}


/* =========================================
   CARRITO
========================================= */

.cart-panel {
    position: fixed;
    top: 0;
    right: -420px;

    width: min(400px, 90%);
    height: 100vh;

    z-index: 2000;

    background: white;

    display: flex;
    flex-direction: column;

    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);

    transition: right 0.4s;
}

.cart-panel.active {
    right: 0;
}

.cart-header {
    padding: 25px;

    display: flex;
    justify-content: space-between;

    border-bottom: 1px solid #ddd;
}

.close-cart {
    border: none;
    background: transparent;

    font-size: 2rem;
    cursor: pointer;
}

.cart-products {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 15px 0;

    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 55px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef5ff;

    border-radius: 8px;
    font-size: 1.8rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
}

.cart-item-info p {
    color: var(--primary);
    font-weight: bold;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 5px;
}

.quantity-controls button {
    width: 25px;
    height: 25px;

    border: none;
    border-radius: 5px;

    background: #eee;

    cursor: pointer;
}

.remove-item {
    border: none;
    background: transparent;

    color: var(--primary);

    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
}

.total {
    display: flex;
    justify-content: space-between;

    margin-bottom: 15px;

    font-size: 1.2rem;
}

.full {
    width: 100%;
    text-align: center;
}

.empty-cart {
    text-align: center;
    color: #777;
    padding: 40px 10px;
}

.overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.5);

    z-index: 1500;

    opacity: 0;
    visibility: hidden;

    transition: 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================
   FORMULARIO
========================================= */

.contact-section {
    background: white;
}

.contact-form {
    max-width: 850px;
    margin: auto;

    padding: 40px;

    background: #f7f8fa;

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 13px 15px;

    border: 2px solid #ddd;
    border-radius: 8px;

    font-family: inherit;
    font-size: 1rem;

    outline: none;

    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
}

.form-group textarea {
    resize: vertical;
}

.form-message {
    margin-top: 15px;
    font-weight: bold;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    padding: 45px 8%;

    text-align: center;

    background: #0b1120;
    color: white;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.copyright {
    margin-top: 20px;
    color: #9ca3af;
    font-size: 0.9rem;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 850px) {

    .header {
        padding: 0 4%;
    }

    .nav {
        display: none;
    }

    .hero {
        text-align: center;

        flex-direction: column;
        gap: 60px;

        padding: 70px 5%;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .results-section {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 5%;
    }

}


@media (max-width: 500px) {

    .logo {
        font-size: 1.3rem;
    }

    .cart-button {
        padding: 8px 12px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .pokemon-card {
        width: 250px;
    }

    .contact-form {
        padding: 25px;
    }

}