/* Variables */
:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --accent: #00cec9;
    --background: #dfe6e9;
    --text: #2d3436;
    --white: #ffffff;
    --pastel-blue: #74b9ff;
    --pastel-green: #55efc4;
    --pastel-pink: #fab1a0;
    --pastel-yellow: #ffeaa7;

    --font-main: 'Roboto', 'Inter', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    color: var(--primary);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    text-align: center;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f1c3f;
    /* Dark blue matching the icon */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    /* Account for fixed header */
    padding-bottom: 50px;
    background: linear-gradient(135deg, var(--white) 0%, var(--background) 100%);
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
    height: 100%;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s;
    max-height: 80vh;
    /* Prevent image from being too tall */
    object-fit: cover;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.cta-group {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

/* Problem & Solution */
.problem-solution {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--background);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

/* Training Offer */
.offer {
    background: linear-gradient(to bottom, var(--background), var(--white));
    position: relative;
    overflow: hidden;
}

.offer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/mapa.webp);
    background-size: 40%;
    background-position: right bottom;
    background-repeat: no-repeat;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.offer .container {
    position: relative;
    z-index: 1;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

a.link {
    color: var(--primary);
    text-decoration: underline;
}

.tab-btn {
    padding: 15px 40px;
    background: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--pastel-blue);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:nth-child(2) {
    border-color: var(--pastel-green);
}

.course-card:nth-child(3) {
    border-color: var(--pastel-pink);
}

.course-meta {
    margin-top: auto;
    padding-top: 25px;
    font-size: 0.9rem;
    color: #636e72;
}

/* About Me */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Pricing */
.pricing {
    background: var(--pastel-yellow);
    text-align: center;
}

.pricing-box {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    display: inline-block;
    box-shadow: var(--shadow);
    max-width: 800px;
}

/* References */
.references {
    background: var(--white);
}

.testimonial {
    background: var(--background);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-style: italic;
}

/* Contact */
.contact {
    background: var(--text);
    color: var(--white);
}

.contact h2 {
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
}

.contact-info a {
    display: block;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: #1e272e;
    color: #b2bec3;
    text-align: center;
    padding: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About PS Footer (Signature style) */
.about-ps {
    display: flex;
    justify-content: flex-end;
    margin-top: 50px;
}

.ps-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    max-width: 400px;
}

.ps-image {
    max-height: 180px;
    width: auto;
    margin-bottom: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.ps-content p {
    font-size: 0.9rem;
    color: #636e72;
    font-style: italic;
}

/* Tablet / Narrow Desktop */
@media (max-width: 1138px) {
    .nav-links {
        gap: 10px;
    }

    .nav-btn {
        padding: 8px 10px;
        font-size: 0.9rem;
        margin-left: 2px;
    }

    .nav-links a {
        font-size: 0.95rem;
    }
}

/* Smaller Tablet */
@media (max-width: 921px) {
    .nav-links {
        gap: 5px;
        /* Even smaller gap */
    }

    .nav-btn {
        padding: 6px 8px;
        font-size: 0.8rem;
        /* Smaller button text */
    }

    .nav-links a {
        font-size: 0.85rem;
        /* Smaller link text */
    }

    .logo {
        font-size: 1.2rem;
        /* Slightly smaller logo to save space */
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding-top: 80px;
        text-align: center;
        height: auto;
        min-height: auto;
    }

    .hero .container {
        flex-direction: column;
        gap: 30px;
    }

    .hero-image img {
        transform: none;
        max-height: 400px;
        width: 100%;
        object-fit: cover;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Menu */
    .hamburger {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--primary);
        margin: 5px 0;
        transition: 0.3s;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
        display: flex;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .cta-group {
        justify-content: center;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about-ps {
        justify-content: center;
    }

    .ps-content {
        align-items: center;
        text-align: center;
    }

    .course-meta {
        font-size: 0.7rem;
        color: #636e72;
    }
}

/* Flash Messages */
.flash {
    position: fixed;
    top: 90px;
    right: 20px;
    padding: 15px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--white);
    z-index: 2000;
    animation: slideIn 0.3s ease-out forwards;
    max-width: 300px;
}

.flash.success {
    background-color: var(--pastel-green);
    color: #2d3436;
}

.flash.error {
    background-color: #fab1a0;
    /* pastel-pink */
    color: #d63031;
}

.flash.info {
    background-color: var(--pastel-blue);
    color: var(--white);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form Errors */

/* --- Global Form Redesign Styles --- */

/* Page Layout for Full Screen Forms */
.centered-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
}

/* Card Style */
.form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    /* Ensures it centers if wrapper is not flex */
}

.form-card h1,
.form-card h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary);
    text-align: center;
}

/* Input Groups */
.floating-input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

/* Inputs */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #d2d8da;
    /* Default border */
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
    appearance: none;
    /* Remove default browser styling */
    font-family: inherit;
    /* Keep this from original .form-input */
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-input.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Floating Labels */
.form-label {
    position: absolute;
    top: 14px;
    left: 15px;
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.2s ease all;
    background-color: #ffffff;
    padding: 0 5px;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

/* Static Labels (for selects, checkboxes) */
.form-label-static {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
    margin-left: 5px;
}

/* Checkbox Style */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* Buttons */
.btn-block {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    font-size: 1.1rem;
    text-align: center;
    border-radius: 50px;
}

/* Errors */
ul.errors {
    list-style: none;
    color: #d63031;
    background: #ffeaa7;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 0.9rem;
}

/* Specific deletions/overrides */
.form-actions {
    margin-top: 20px;
}

/* Personality Test Section */
.personality-test {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    text-align: center;
}

.section-subtitle {
    max-width: 800px;
    margin: 0 auto 50px;
    color: #636e72;
    font-size: 1.1rem;
}

/* Reusing .features-grid and .feature-card from main styles, 
   so we don't need .test-paths-grid or .path-card anymore. */

/* Logic for test specific note */
.test-note {
    background: #e1e4e8;
    color: #2d3436;
}

/* Pricing & CTA */
.pricing-cta {
    margin: 60px auto 0;
    /* Center horizontally, keep top margin */
    background: var(--white);
    padding: 30px 50px;
    border-radius: 50px;
    display: flex;
    /* Changed from inline-flex */
    width: fit-content;
    /* Ensure it wraps content */
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    justify-content: center;
}

.price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-label {
    font-size: 0.9rem;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.btn-cta-test {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    padding: 15px 50px;
    font-size: 1.3rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.4);
    transition: all 0.3s;
    border: none;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.btn-cta-test:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px rgba(108, 92, 231, 0.5);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .pricing-cta {
        flex-direction: column;
        gap: 20px;
        padding: 30px;
        border-radius: 20px;
        width: 100%;
    }

    .price-display {
        align-items: center;
    }
}

/* Split View Page */
.split-view-page {
    padding: 180px 0 80px;
    /* More top padding for header */
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.split-col {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    border-top: 6px solid transparent;
}

.split-col:hover {
    transform: translateY(-5px);
}

.individual-col {
    border-color: var(--pastel-blue);
}

.school-col {
    border-color: var(--pastel-yellow);
}

.col-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.col-header {
    text-align: center;
    margin-bottom: 20px;
}

.col-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.col-desc {
    font-size: 1.1rem;
    color: #636e72;
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
}

.benefit-list {
    margin-bottom: 30px;
}

.benefit-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.col-price {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-top: auto;
    margin-bottom: 20px;
    color: var(--text);
}

.btn-col {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-individual {
    background: var(--primary);
    color: white;
}

.btn-school {
    background: var(--white);
    color: var(--text);
    border: 2px solid #dfe6e9;
}

.btn-school:hover {
    background: #dfe6e9;
}

/* How it works */
.how-it-works {
    text-align: center;
    margin-top: 80px;
}

.steps-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-arrow {
    font-size: 1.5rem;
    color: #b2bec3;
}

/* Nav Btn CTA */
.btn-nav-cta {
    background: var(--accent);
    color: white !important;
    /* Override nav link color */
    padding: 8px 15px;
    border-radius: 20px;
    transition: 0.3s;
}

.btn-nav-cta:hover {
    background: #00b894;
    /* darker teal */
    transform: translateY(-2px);
}

/* Mobile Split */
@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        flex-direction: column;
        gap: 10px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }
}

/* Nav Highlights */
.nav-links {
    align-items: center;
    /* Ensure vertical alignment */
}

.nav-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-left: 5px;
    /* Slight spacing */
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-btn-school {
    background: var(--pastel-yellow);
    color: var(--text) !important;
}

.nav-btn-order {
    background: var(--pastel-blue);
    color: var(--white) !important;
}

.nav-btn-auth {
    background: var(--primary);
    color: var(--white) !important;
}

/* Print Styles */
@media print {

    /* Hide everything by default that isn't the main content */
    header,
    footer,
    nav,
    .btn,
    .hamburger,
    .hero,
    .problem-solution,
    .offer,
    .about,
    .pricing,
    .references,
    .contact,
    .flash,
    .about-ps {
        display: none !important;
    }

    /* Reset background and text colors */
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    /* Ensure container is full width and visible */
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    /* Specifically target legal containers to show them */
    .container-legal {
        display: block !important;
        padding: 0 !important;
        margin: 20px !important;
    }

    /* Clean up links */
    a {
        text-decoration: none;
        color: black;
    }

    /* Ensure text is black and readable */
    p,
    h1,
    h2,
    h3,
    li {
        color: black !important;
        text-shadow: none !important;
    }

    /* Hide the print button itself */
    button {
        display: none !important;
    }
}
/* Shared back button style */
.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f2f5;
    color: #636e72;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    margin-right: 15px;
}

.btn-back:hover {
    background: #e3e6ea;
    color: #2c3e50;
    text-decoration: none;
    transform: translateX(-2px);
}
