* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --rosa: #eab6cf;
    --morado: #7c4fa3;
    --morado-oscuro: #332842;
    --fondo: #f8f3f8;
    --blanco: #ffffff;
    --gris: #777787;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--fondo);
    color: var(--morado-oscuro);
}

.app {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 30px;
}

/* =========================
   HEADER
========================= */

.header {
    text-align: center;
    padding: 28px 20px 18px;
    background: white;
}

.logo {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.subtitle {
    margin-top: 5px;
    color: var(--rosa);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 4px;
}

/* =========================
   HERO
========================= */

.hero {
    margin: 0 16px 18px;
    padding: 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, #f4dce8, #e9def3);
    display: flex;
    gap: 15px;
    align-items: center;
    overflow: hidden;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 23px;
    line-height: 1.15;
}

.benefits {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 11px;
    color: #62576c;
}

.hero-image {
    width: 43%;
}

.pet-placeholder {
    aspect-ratio: 1;
    border-radius: 20px;
    background: #d99ab9;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 75px;
}

/* =========================
   CARDS
========================= */

.card {
    background: var(--blanco);
    margin: 0 16px 15px;
    padding: 20px;
    border-radius: 22px;
    box-shadow: 0 3px 15px rgba(70, 40, 80, 0.06);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.section-title h2 {
    font-size: 19px;
}

.number {
    min-width: 31px;
    height: 31px;
    border-radius: 50%;
    background: var(--rosa);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* =========================
   TAMAÑOS
========================= */

.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.option {
    border: 1.5px solid #e4e1e8;
    background: white;
    border-radius: 16px;
    padding: 15px 8px;
    min-height: 125px;
    cursor: pointer;
    color: var(--morado-oscuro);
}

.option.selected {
    border: 2px solid var(--morado);
    background: #faf5fc;
}

.option strong {
    display: block;
    margin-top: 8px;
    font-size: 14px;
}

.option span {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: var(--morado);
    font-weight: bold;
}

.shape {
    width: 42px;
    height: 42px;
    border: 2px solid var(--morado);
    margin: auto;
}

.shape.circle {
    border-radius: 50%;
}

.shape.heart {
    border: none;
    font-size: 44px;
    line-height: 42px;
    color: var(--rosa);
}

/* =========================
   FOTO
========================= */

.upload {
    border: 2px dashed #c8c1d0;
    border-radius: 17px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
}

.upload input {
    display: none;
}

.upload-icon {
    font-size: 35px;
}

.upload strong {
    font-size: 14px;
}

.upload p {
    margin-top: 7px;
    color: var(--gris);
    font-size: 12px;
}

/* =========================
   NOMBRE Y DATOS DE ENVÍO
========================= */

.text-input {
    width: 100%;
    height: 52px;
    border: 1px solid #d9d5df;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    margin-bottom: 10px;
}

.text-input:focus {
    border-color: var(--morado);
}

/* Datos de envío a regiones */
.region-customer-data {
    margin-top: 18px;
}

.region-customer-data h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Oculta las etiquetas repetidas y deja visible
   solamente el texto dentro de cada casilla */
.region-customer-data label {
    display: block;
    font-size: 0;
}

.region-customer-data label .text-input {
    font-size: 16px;
}

.text-input:focus {
    border-color: var(--morado);
}

/* =========================
   COLORES
========================= */

.colors {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 0 0 1px #ddd;
}

.color:nth-child(1) { background: #eab6cf; }
.color:nth-child(2) { background: #cdb9e9; }
.color:nth-child(3) { background: #a9d2e8; }
.color:nth-child(4) { background: #acd5bb; }
.color:nth-child(5) { background: #e6d1aa; }
.color:nth-child(6) { background: #f0d475; }
.color:nth-child(7) { background: #efb080; }
.color:nth-child(8) { background: #d86666; }
.color:nth-child(9) { background: #aab0b8; }

.color.selected {
    box-shadow: 0 0 0 3px var(--morado);
}

/* =========================
   CANTIDAD
========================= */

.quantity {
    width: 160px;
    height: 50px;
    border: 1px solid #ddd8e2;
    border-radius: 15px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.quantity button {
    width: 50px;
    height: 100%;
    border: none;
    background: #f5f0f7;
    font-size: 24px;
    cursor: pointer;
}

.quantity span {
    font-size: 18px;
    font-weight: bold;
}

/* =========================
   ENTREGA
========================= */

.delivery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.delivery-option {
    min-height: 105px;
    border: 1.5px solid #e2dfe6;
    border-radius: 15px;
    background: white;
    padding: 10px 5px;
    cursor: pointer;
    color: var(--morado-oscuro);
}

.delivery-option.selected {
    border: 2px solid var(--morado);
    background: #faf5fc;
}

.delivery-option span {
    display: block;
    font-size: 27px;
    margin-bottom: 5px;
}

.delivery-option strong {
    display: block;
    font-size: 13px;
}

.delivery-option small {
    display: block;
    margin-top: 4px;
    color: var(--gris);
    font-size: 10px;
}

.notice {
    margin-top: 15px;
    padding: 12px;
    border-radius: 12px;
    background: #f4eafb;
    color: #654878;
    font-size: 11px;
    text-align: center;
    line-height: 1.4;
}

/* =========================
   RESUMEN
========================= */

.summary-content {
    display: flex;
    gap: 15px;
}

.summary-image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    background: #eab6cf;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 45px;
}

.summary-info {
    flex: 1;
}

.summary-info p {
    font-size: 12px;
    margin-bottom: 6px;
}

.summary-info strong {
    margin-right: 4px;
}

.total {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #e5e1e7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.total strong {
    color: var(--morado);
    font-size: 25px;
}

/* =========================
   PAGO
========================= */

.pay-button {
    width: 100%;
    height: 58px;
    margin-top: 20px;
    border: none;
    border-radius: 18px;
    background: var(--morado);
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(124, 79, 163, 0.25);
}

.pay-button:active {
    transform: scale(0.98);
}

.secure {
    text-align: center;
    margin-top: 12px;
    color: #77717c;
    font-size: 11px;
}

.thanks {
    text-align: center;
    margin-top: 18px;
    color: #76577f;
    font-size: 13px;
}

/* =========================
   CELULAR
========================= */

@media (max-width: 420px) {

    .hero {
        padding: 15px;
    }

    .hero h1 {
        font-size: 20px;
    }

    .pet-placeholder {
        font-size: 55px;
    }

    .card {
        padding: 16px;
    }

    .section-title h2 {
        font-size: 17px;
    }

    .delivery-option {
        min-height: 100px;
    }

}

.top-checkout {
    margin: 15px 0;
}

#go-to-checkout {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    background: #7d4caf;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.cart-actions {
    display: none;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
    margin: 14px 0 18px;
}

.cart-actions button {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 12px;
    padding: 13px 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

#continue-shopping {
    background: white;
    color: #7d4caf;
    border: 2px solid #7d4caf;
}

#go-to-checkout {
    background: #7d4caf;
    color: white;
    border: none;
}
