/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-page: #FDF8F5;
    --text-dark: #111827;
    --accent: #FF7E5F; 
    --input-bg: #F9FAFB;   /* Fondo gris muy clarito (PetSafe style) */
    --input-border: #E5E7EB; /* Borde sutil */
    --radius-lg: 24px;
    --radius-md: 12px;
    --shadow-card: 0 10px 40px -5px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    background: var(--bg-page);
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
}

/* NAVBAR */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; margin-bottom: 20px;
}
.brand { font-weight: 800; font-size: 1.5rem; color: var(--text-dark); text-decoration: none; }
.brand span { color: var(--accent); }

/* CONTENEDOR */
.main-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
}

/* HERO */
.hero-tag {
    display: inline-block; background: #FFEDD5; color: #C2410C;
    font-size: 0.75rem; font-weight: 700; padding: 6px 12px; border-radius: 20px;
    margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px;
}
.hero-title {
    font-size: 2.5rem; line-height: 1.1; font-weight: 800;
    margin-bottom: 15px; color: var(--text-dark); text-align: center;
}
.hero-title .highlight { color: var(--accent); }
.hero-subtitle {
    text-align: center; color: #4B5563; margin-bottom: 30px;
    font-size: 1.1rem; max-width: 90%; margin: 0 auto 30px auto;
}

/* VISUALIZADOR */
.visualizer-container {
    background: #fff; padding: 10px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card); margin-bottom: 40px;
}
.mockup-area {
    background: #E5E7EB; border-radius: 20px; aspect-ratio: 1/1;
    position: relative; overflow: hidden; margin-bottom: 20px;
}
#user-photo-layer {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; z-index: 1; transition: all 0.1s;
}
.cushion-mask {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10; pointer-events: none; background-size: cover;
}
.placeholder-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #9CA3AF; font-weight: 600; font-size: 1.5rem; text-align: center; z-index: 0;
}

/* BOTÓN SUBIDA */
.upload-btn {
    display: block; width: 100%; background: var(--text-dark); color: #fff;
    padding: 18px; border-radius: 50px; text-align: center; font-weight: 600;
    font-size: 1.1rem; cursor: pointer; transition: 0.3s;
    position: relative; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.upload-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.upload-btn input { position: absolute; top:0; left:0; width:100%; height:100%; opacity:0; cursor: pointer; }

/* CONTROLES */
.controls { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }
.ctrl-btn {
    width: 40px; height: 40px; border-radius: 50%; background: white; border: 1px solid #ddd;
    cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

/* BENEFICIOS */
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; margin: 40px 0; }
.benefit-card { background: #fff; padding: 20px 15px; border-radius: var(--radius-md); text-align: left; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.icon-box { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 10px; }
.bg-blue { background: #DBEAFE; color: #2563EB; }
.bg-green { background: #DCFCE7; color: #16A34A; }
.bg-orange { background: #FFEDD5; color: #EA580C; }
.benefit-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 5px; }
.benefit-desc { font-size: 0.8rem; color: #6B7280; line-height: 1.3; }

/* CHECKOUT CARD */
.checkout-card {
    background: white; padding: 30px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.form-header { font-size: 1.4rem; font-weight: 700; margin-bottom: 25px; color: var(--text-dark); }

/* INPUTS (Clavados a la foto) */
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.input-full { width: 100%; margin-bottom: 15px; }

.styled-input {
    width: 100%;
    padding: 16px; /* Padding generoso */
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px; /* Redondeo estilo foto */
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #374151; /* Gris oscuro para el texto escrito */
    transition: all 0.2s;
}

/* Placeholder Gris (Como pediste) */
.styled-input::placeholder {
    color: #9CA3AF; /* Gris claro */
    font-weight: 400;
}

.styled-input:focus {
    background: #fff;
    border-color: #6B7280; /* Se oscurece un poco al escribir */
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05); /* Brillo sutil */
}

/* SELECTOR DE PAGO (Lógica Visual Arreglada) */
.payment-opt {
    position: relative;
    border: 1px solid var(--input-border);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    background: #fff;
}

/* Cuando está seleccionado (clase 'active' vía JS) */
.payment-opt.active {
    border-color: #FCD34D; /* Borde amarillento/dorado */
    background: #FFFBEB;    /* Fondo crema muy suave (estilo foto) */
}

/* Radio Button Personalizado */
.payment-opt input[type="radio"] {
    accent-color: #2563EB; /* Azul si el navegador lo soporta nativo */
    transform: scale(1.2);
    margin-right: 12px;
}

/* Etiquetas (Seguro / Rápido) */
.badge {
    font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 6px;
}
.badge-gray { background: #F3F4F6; color: #374151; }
.badge-blue { background: #DBEAFE; color: #2563EB; }

/* BOTÓN FINAL */
.submit-btn-final {
    width: 100%; background: var(--text-dark); color: white;
    padding: 20px; border-radius: 12px; font-size: 1.1rem; font-weight: 700;
    border: none; cursor: pointer; margin-top: 20px;
    display: flex; justify-content: space-between;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

@media(max-width: 600px) {
    .benefits-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
}