/* ========================================
   PERSONAL SHOPPER PAGE STYLES
   Formato de lectura (artículo)
   + formulario de contacto.
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ========================================
   VARIABLES
   ======================================== */
.ps-page {
    --ps-font: 'Inter', 'Segoe UI', sans-serif;
    --ps-primary: #1e3a5f;
    --ps-secondary: #2C5F8D;
    --ps-accent: #2A9D8F;
    --ps-accent-dark: #238276;
    --ps-accent-glow: rgba(42, 157, 143, 0.25);
    --ps-purple: #6A4C93;
    --ps-dark: #0a1628;
    --ps-darker: #060f1d;
    --ps-text: #334155;
    --ps-text-light: #64748b;
    --ps-text-muted: #94a3b8;
    --ps-bg: #f8fafc;
    --ps-bg-alt: #ffffff;
    --ps-border: #e2e8f0;
    --ps-radius: 12px;
    --ps-radius-lg: 20px;
    --ps-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --ps-shadow-lg: 0 20px 40px -12px rgba(0,0,0,0.12);
    --ps-shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    font-family: var(--ps-font);
    overflow-x: hidden;
}

/* ========================================
   HERO SECTION
   ======================================== */
.ps-hero {
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--ps-darker) 0%, var(--ps-dark) 30%, var(--ps-primary) 70%, var(--ps-secondary) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 120px 24px 100px;
}

.ps-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 600px at 15% 85%, rgba(42, 157, 143, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 85% 15%, rgba(106, 76, 147, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.ps-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Orbes decorativos */
.ps-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: psOrbFloat 8s ease-in-out infinite;
}

.ps-hero__orb--1 {
    width: 400px;
    height: 400px;
    background: rgba(42, 157, 143, 0.12);
    top: -100px;
    right: -100px;
}

.ps-hero__orb--2 {
    width: 300px;
    height: 300px;
    background: rgba(106, 76, 147, 0.1);
    bottom: -80px;
    left: -80px;
    animation-delay: -3s;
}

@keyframes psOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.ps-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: psFadeUp 1s ease-out;
}

.ps-hero__badge {
    display: inline-block;
    background: rgba(42, 157, 143, 0.15);
    border: 1px solid rgba(42, 157, 143, 0.3);
    color: var(--ps-accent);
    padding: 8px 24px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.ps-hero__title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 28px 0;
    letter-spacing: -0.03em;
}

.ps-hero__title-accent {
    background: linear-gradient(135deg, var(--ps-accent), #5BCCBE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ps-hero__subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin: 0 0 44px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ps-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--ps-accent);
    color: #fff !important;
    padding: 18px 36px;
    border-radius: var(--ps-radius);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(42, 157, 143, 0.35);
    border: none;
    cursor: pointer;
}

.ps-hero__cta:hover {
    background: var(--ps-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(42, 157, 143, 0.45);
    color: #fff !important;
}

.ps-hero__cta i {
    animation: psBounce 2s ease-in-out infinite;
}

@keyframes psBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes psFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   ARTICLE / TEXT CONTENT
   ======================================== */
.ps-article {
    width: 100%;
    background: var(--ps-bg-alt);
}

.ps-article__inner {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 80px 40px 60px;
    text-align: left;
}

/* Lead paragraph */
.ps-article__lead {
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    color: var(--ps-primary);
    line-height: 1.7;
    margin: 0 0 36px 0;
    font-weight: 500;
}

.ps-article__lead strong {
    font-weight: 800;
}

/* Regular paragraphs */
.ps-article__inner p {
    font-size: 1.12rem;
    color: var(--ps-text);
    line-height: 2;
    margin: 0 0 28px 0;
}

.ps-article__inner p strong {
    color: var(--ps-primary);
    font-weight: 700;
}

/* Headings */
.ps-article__inner h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--ps-primary);
    margin: 56px 0 24px 0;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--ps-accent);
    display: inline-block;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.ps-article__inner h2:first-of-type {
    margin-top: 0;
}

.ps-article__inner h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--ps-secondary);
    margin: 48px 0 18px 0;
    line-height: 1.3;
}

/* Horizontal rule */
.ps-article__inner hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, var(--ps-accent), var(--ps-purple), transparent);
    margin: 52px 0;
    max-width: 250px;
}

/* Links inside article */
.ps-article__inner a {
    color: var(--ps-accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}

.ps-article__inner a:hover {
    color: var(--ps-accent-dark);
    border-bottom-color: var(--ps-accent-dark);
}

/* ========================================
   FORM SECTION
   ======================================== */
.ps-form-section {
    width: 100%;
    background: linear-gradient(160deg, var(--ps-dark) 0%, var(--ps-primary) 50%, var(--ps-secondary) 100%);
    position: relative;
}

.ps-form-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.ps-form-section__inner {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 80px 40px 100px;
    position: relative;
    z-index: 1;
}

.ps-form-wrapper {
    background: var(--ps-bg-alt);
    border-radius: var(--ps-radius-lg);
    padding: 56px 48px;
    box-shadow: var(--ps-shadow-xl);
}

.ps-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.ps-form-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--ps-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.ps-form-header p {
    font-size: 1rem;
    color: var(--ps-text-light);
    margin: 0;
    line-height: 1.6;
}

.ps-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ps-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ps-form__field--full {
    margin-bottom: 20px;
}

.ps-form__field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ps-text);
    letter-spacing: 0.01em;
}

.ps-required {
    color: #ef4444;
}

.ps-form__field input,
.ps-form__field select,
.ps-form__field textarea {
    padding: 14px 16px;
    border: 2px solid var(--ps-border);
    border-radius: var(--ps-radius);
    font-size: 1rem;
    font-family: var(--ps-font);
    color: var(--ps-text);
    background: var(--ps-bg);
    transition: all 0.25s ease;
    width: 100%;
}

.ps-form__field input:focus,
.ps-form__field select:focus,
.ps-form__field textarea:focus {
    outline: none;
    border-color: var(--ps-accent);
    box-shadow: 0 0 0 4px var(--ps-accent-glow);
    background: var(--ps-bg-alt);
}

.ps-form__field input::placeholder,
.ps-form__field textarea::placeholder {
    color: var(--ps-text-muted);
}

.ps-form__field textarea {
    resize: vertical;
    min-height: 120px;
}

.ps-form__field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Checkbox */
.ps-form__privacy {
    margin-bottom: 28px;
}

.ps-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ps-text-light);
}

.ps-checkbox input[type="checkbox"] {
    display: none;
}

.ps-checkbox__mark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--ps-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
}

.ps-checkbox input[type="checkbox"]:checked + .ps-checkbox__mark {
    background: var(--ps-accent);
    border-color: var(--ps-accent);
}

.ps-checkbox input[type="checkbox"]:checked + .ps-checkbox__mark::after {
    content: '✓';
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.ps-checkbox a {
    color: var(--ps-accent);
    font-weight: 600;
    text-decoration: underline;
}

/* Submit */
.ps-form__submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--ps-accent), #5BCCBE);
    color: #fff;
    border: none;
    border-radius: var(--ps-radius);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--ps-font);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(42, 157, 143, 0.3);
}

.ps-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(42, 157, 143, 0.45);
}

.ps-form__submit:active {
    transform: translateY(0);
}

/* Messages */
.ps-form__message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: var(--ps-radius);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.ps-form__message--success {
    background: rgba(42, 157, 143, 0.1);
    color: var(--ps-accent-dark);
    border: 1px solid rgba(42, 157, 143, 0.25);
}

.ps-form__message--error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ========================================
   RESPONSIVE - TABLET (max 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .ps-article__inner {
        padding: 64px 32px 48px;
    }

    .ps-form-section__inner {
        padding: 64px 32px 80px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (max 768px)
   ======================================== */
@media (max-width: 768px) {
    .ps-hero {
        min-height: 60vh;
        padding: 100px 20px 80px;
    }

    .ps-article__inner {
        padding: 48px 24px 36px;
    }

    .ps-article__inner p {
        font-size: 1.05rem;
        line-height: 1.9;
    }

    .ps-article__inner h2 {
        font-size: 1.5rem;
        margin-top: 40px;
    }

    .ps-article__inner hr {
        margin: 40px 0;
    }

    .ps-form-section__inner {
        padding: 48px 20px 64px;
    }

    .ps-form-wrapper {
        padding: 36px 24px;
    }

    .ps-form__grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (max 480px)
   ======================================== */
@media (max-width: 480px) {
    .ps-hero {
        min-height: 55vh;
        padding: 80px 16px 60px;
    }

    .ps-hero__badge {
        font-size: 0.75rem;
        padding: 6px 18px;
    }

    .ps-hero__cta {
        width: 100%;
        justify-content: center;
        padding: 16px 28px;
    }

    .ps-article__inner {
        padding: 40px 18px 28px;
    }

    .ps-article__lead {
        font-size: 1.15rem;
    }

    .ps-article__inner p {
        font-size: 1rem;
        line-height: 1.85;
        margin-bottom: 24px;
    }

    .ps-form-section__inner {
        padding: 40px 16px 52px;
    }

    .ps-form-wrapper {
        padding: 28px 18px;
        border-radius: var(--ps-radius);
    }
}
