/* Juliana Corcho Website Styles */

/* Color Variables */
:root {
    --primary-bg: #fff9f3;
    --primary-purple: #3f2679;
    --primary-yellow: #e5d357;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f8f9fa;
    --overlay-dark: rgba(0, 0, 0, 0.6);
}

/* Utility Classes */
.text-purple {
    color: var(--primary-purple) !important;
}

.text-yellow {
    color: var(--primary-yellow) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-black {
    color: var(--black) !important;
}

.bg-purple {
    background-color: var(--primary-purple) !important;
}

.bg-yellow {
    background-color: var(--primary-yellow) !important;
}

.bg-white {
    background-color: var(--white) !important;
}

.bg-light {
    background-color: var(--primary-bg) !important;
}

.border-purple {
    border-color: var(--primary-purple) !important;
}

.border-yellow {
    border-color: var(--primary-yellow) !important;
}

.shadow-purple {
    box-shadow: 0 10px 30px rgba(63, 38, 121, 0.1) !important;
}

.shadow-yellow {
    box-shadow: 0 10px 30px rgba(229, 211, 87, 0.1) !important;
}

.rounded-lg {
    border-radius: 16px !important;
}

.rounded-xl {
    border-radius: 24px !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.px-5 {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.mx-5 {
    margin-left: 3rem !important;
    margin-right: 3rem !important;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(63, 38, 121, 0.15);
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--primary-bg);
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.highlight {
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline;
    margin: 0 2px;
    line-height: inherit;
}

.section-title {
    color: var(--primary-purple);
    font-weight: 800;
    margin-bottom: 2rem;
    font-size: 3rem;
}

.btn-primary {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--black);
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    background-color: #d4c247;
    border-color: #d4c247;
    color: var(--black);
    transform: translateY(-2px);
}

/* Hero Section - Wave/Blob Style 50/50 */
.hero-section {
    min-height: 90vh;
    background: var(--primary-bg);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
    padding: 80px 0;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.4;
}

.hero-section img[alt="Logo Juliana Corcho"] {
    max-width: 120px;
    height: auto;
    margin-bottom: 2rem;
}

/* Problem Section */
.problem-section {
    background-color: var(--primary-bg);
    padding: 80px 0;
}


.problem-item {
    display: flex;
    align-items: flex-start;
    background: var(--white);
    border-radius: 16px;
    border-left: 4px solid var(--primary-purple);
    box-shadow: 0 10px 30px rgba(63, 38, 121, 0.1);
}

.problem-icon {
    color: var(--primary-purple);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    margin-top: 0.25rem;
    min-width: 30px;
}

.problem-item p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Solution Section */
.solution-section {
    background: var(--primary-bg);
    color: var(--white);
    padding: 60px 0;
}

.solution-text {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-purple);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.solution-text .highlight {
    background-color: var(--primary-yellow);
    color: var(--primary-purple);
}


/* Services Section */
.services-section {
    background-color: var(--white);
    padding: 80px 0;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(63, 38, 121, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(63, 38, 121, 0.15);
}

.service-image {
    height: 140px;
    background-color: var(--primary-purple);
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon{
    width: 40px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-icon {
    font-size: 56px;
    color: var(--primary-bg);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-content {
    padding: 2.5rem;
}

.service-title {
    color: var(--primary-purple);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.service-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--black);
    font-weight: 500;
}

/* Optional Section */
.optional-section {
    background-color: var(--primary-bg);
    padding: 80px 0;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--white);
    padding: 80px 0;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    height: 100%;
    border-top: 4px solid var(--primary-purple);
    position: relative;
    box-shadow: 0 10px 30px rgba(63, 38, 121, 0.1);
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-purple);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--black);
    font-weight: 500;
    font-style: italic;
}

.testimonial-author {
    color: var(--primary-purple);
    font-weight: 600;
    border-top: 2px solid var(--primary-yellow);
    padding-top: 1rem;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    background: var(--primary-bg);
    color: var(--black);
    padding: 80px 0;
}

.about-section .section-title {
    color: var(--primary-purple);
}

.about-intro {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.about-brands {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.profile-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border: 6px solid var(--white);
    box-shadow: 0 15px 35px rgba(63, 38, 121, 0.2);
}

.brands-section h4 {
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 1rem;
}

.brands-list {
    font-weight: 500;
    color: var(--primary-purple);
}

/* CTA Section */
.cta-section {
    background: var(--primary-purple);
    color: var(--white);
    padding: 80px 0;
}

.cta-title {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Footer */
.footer {
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 2rem 0;
}

.footer h5 {
    color: var(--primary-yellow);
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 1.1rem;
}

.footer-link:hover {
    color: var(--primary-yellow);
    text-decoration: none;
}

.footer img[alt="Logo JC"] {
    max-width: 48px;
    height: auto;
    margin-right: 16px;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
    .w-80{
        min-width: 100%!important;
    }
    section {
        padding: 5px !important;
    }

    .hero-section {
        min-height: 100vh;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .solution-text {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .service-content {
        padding: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .w-80{
        min-width: 100%!important;
    }
    .hero-title {
        font-size: 2.5rem;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .service-title {
        font-size: 1.25rem;
    }

    .about-intro {
        font-size: 1.25rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d1a5c;
}

.w-80{
    max-width: 80%;
}

.language-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #e1e1e1;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    font-weight: 500;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    border-color: #ccc;
}

/* CMS Styles */
.auth-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    width: 300px;
}

.auth-panel.show {
    display: block;
}

.auth-panel h2 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.auth-panel input {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.auth-panel button {
    width: 100%;
    padding: 0.5rem;
    background: #6f42c1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Inline editing styles */
.cms-editable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.cms-editable:hover {
    outline: 2px dashed #6f42c1;
    outline-offset: 4px;
}

.cms-editable:focus {
    outline: 2px solid #6f42c1;
    outline-offset: 4px;
    background: rgba(111, 66, 193, 0.05);
}

.cms-editable.modified {
    outline: 2px solid #ffc107;
    outline-offset: 4px;
}

/* Floating CMS toolbar - unified format + actions */
.cms-toolbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.cms-toolbar.show {
    display: flex;
}

.cms-toolbar .format-section {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cms-toolbar .format-buttons {
    display: flex;
    gap: 4px;
}

.cms-toolbar button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.cms-toolbar button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.cms-toolbar .toolbar-divider {
    width: 1px;
    height: 28px;
    background: #ddd;
    margin: 0 4px;
}

.cms-toolbar .color-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.cms-toolbar .color-btn:hover {
    transform: scale(1.1);
}

.cms-toolbar .color-purple { background: #3f2679; }
.cms-toolbar .color-yellow { background: #e5d357; }
.cms-toolbar .color-white { background: #ffffff; }
.cms-toolbar .color-black { background: #000000; }

.cms-toolbar .format-label {
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cms-toolbar .bg-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 4px;
    border: 2px solid #ddd;
    position: relative;
}

.cms-toolbar .bg-btn::after {
    content: 'A';
    font-weight: bold;
    font-size: 0.75rem;
}

.cms-toolbar .bg-btn:hover {
    transform: scale(1.1);
}

.cms-toolbar .bg-purple { background: #3f2679; color: white; }
.cms-toolbar .bg-yellow { background: #e5d357; color: #333; }
.cms-toolbar .bg-white { background: #ffffff; color: #333; }
.cms-toolbar .bg-black { background: #000000; color: white; }

.cms-toolbar .highlight-btn {
    background: #3f2679;
    color: white;
    border: none;
}

.cms-toolbar .underline-btn {
    font-weight: bold;
}

.cms-toolbar .underline-purple {
    text-decoration: underline;
    text-decoration-color: #3f2679;
}

.cms-toolbar .underline-yellow {
    text-decoration: underline;
    text-decoration-color: #e5d357;
}

.cms-toolbar .underline-black {
    text-decoration: underline;
    text-decoration-color: #000000;
}

.cms-toolbar .action-buttons {
    margin-left: auto;
}

.cms-toolbar .save-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
}

.cms-toolbar .logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
}

.admin-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    background: #6f42c1;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    z-index: 2000;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.admin-toggle:hover {
    background: #5a32a3;
}