/* 
   Lean Mindset - Styles
   Palette:
   Teal: #07829c
   Gold: #d4af37
   Charcoal: #3f3f41
   White: #ffffff
*/

:root {
    --primary-teal: #07829c;
    --primary-teal-dark: #055f72;
    --accent-gold: #d4af37;
    --accent-gold-hover: #b6962f;
    --text-charcoal: #3f3f41;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light-gray: #f8f9fa;
    --bg-dark-gray: #2c2c2e;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-charcoal);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

/* --- Buttons --- */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 4px;
    /* Slightly rounded, executive feel */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: none;
}

.primary-cta,
.gold-cta {
    background-color: var(--accent-gold);
    color: #fff;
}

.primary-cta:hover,
.gold-cta:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- Header --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 65px;
    /* Increased from 50px */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-charcoal);
}

.nav-links li a:hover {
    color: var(--primary-teal);
}

.nav-cta {
    border: 1px solid var(--primary-teal);
    color: var(--primary-teal) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-cta:hover {
    background-color: var(--primary-teal);
    color: #fff !important;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* --- Hero Section --- */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/hero-bg.png') no-repeat center center/cover;
    color: #fff;
    height: 50vh;
    /* Reduced from 100vh to show next section */
    min-height: 450px;
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(7, 130, 156, 0.2) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

#hero h1 {
    font-size: 2.8rem;
    /* Reduced from 3.5rem */
    margin-bottom: 1.5rem;
    color: #fff;
    margin-top: 3rem;
    /* Push down from top */
}

#hero .hero-response {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

#hero .hero-offering {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* --- Utility: Section Headers --- */
.section-header {
    margin-bottom: 2rem;
    /* Reduced from 4rem */
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-charcoal);
}

.underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-teal);
    margin: 1rem auto 0;
}

.underline.gold {
    background-color: var(--accent-gold);
}

/* --- Problema (El Espejo) --- */
#problema {
    padding-top: 2rem;
    /* Reduced from default 5rem to save space */
    padding-bottom: 5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* --- Flip Card Styles --- */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 290px;
    /* Fixed height to ensure uniform cards */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.flip-card-front {
    background-color: #fff;
    color: var(--text-charcoal);
    border-top: 4px solid transparent;
    transition: var(--transition);
}

.flip-card-front p {
    font-size: 0.95rem;
    color: var(--text-charcoal);
    /* Darkened from text-light for better contrast */
}

/* Hover effect on the wrapper instead of the card directly */
.flip-card:hover .flip-card-front {
    border-top-color: var(--primary-teal);
    box-shadow: var(--shadow-lg);
}

.flip-card-back {
    background-color: var(--primary-teal);
    color: white;
    transform: rotateY(180deg);
    border-top: 4px solid var(--accent-gold);
}

.flip-card-back h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.flip-card-back p {
    color: #fff !important;
    /* Force white for back text */
    font-size: 1rem;
}

/* Update problem-card internal styles to fit new structure */
.problem-card .icon-wrapper {
    color: var(--primary-teal);
    margin-bottom: 1.5rem;
}

.problem-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.problem-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Remove old problem-card container styles as they are now handled by flip components */

.problem-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.problem-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.section-closer {
    margin-top: 2rem;
    /* Reduced from 4rem */
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary-teal-dark);
    font-weight: 600;
}

/* --- Servicios --- */
.bg-light {
    background-color: var(--bg-light-gray);
}

.services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-info {
    flex: 1;
}

.service-info h3 {
    color: var(--primary-teal);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.duration {
    display: inline-block;
    background: var(--bg-light-gray);
    color: var(--text-charcoal);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
}

.entregable {
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-gold);
    font-style: italic;
    font-size: 0.9rem;
}

.service-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    position: relative;
    /* Centering content (icon) */
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape svg {
    color: #fff;
    width: 100px;
    height: 100px;
    stroke-width: 1.5;
    /* Make it a bit lighter if needed, or keeping default */
}

.shape-1 {
    background: linear-gradient(135deg, var(--primary-teal) 0%, rgba(7, 130, 156, 0.4) 100%);
    transform: rotate(10deg);
    animation: float 6s ease-in-out infinite;
}

.shape-1 svg {
    transform: rotate(-10deg);
    /* Counter-rotate icon to be straight */
}

.shape-2 {
    background: linear-gradient(135deg, var(--accent-gold) 0%, rgba(212, 175, 55, 0.4) 100%);
    transform: rotate(-10deg);
    animation: float-reverse 6s ease-in-out infinite;
    animation-delay: 1s;
    /* Slight delay for variety */
}

.shape-2 svg {
    transform: rotate(10deg);
    /* Counter-rotate icon to be straight */
}

@keyframes float {
    0% {
        transform: rotate(10deg) translateY(0px);
    }

    50% {
        transform: rotate(10deg) translateY(-20px);
    }

    100% {
        transform: rotate(10deg) translateY(0px);
    }
}

@keyframes float-reverse {
    0% {
        transform: rotate(-10deg) translateY(0px);
    }

    50% {
        transform: rotate(-10deg) translateY(-20px);
    }

    100% {
        transform: rotate(-10deg) translateY(0px);
    }
}

.c-level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.full-width {
    grid-column: 1 / -1;
}

.c-level-header {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.c-level-icon {
    width: 60px;
    height: 60px;
    color: var(--accent-gold);
    vertical-align: middle;
    margin-right: 15px;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
    animation: gold-pulse 3s infinite;
}

@keyframes gold-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.9));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
    }
}

.c-level-header h3 {
    font-size: 1.8rem;
    color: var(--text-charcoal);
}

.c-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-teal);
    box-shadow: var(--shadow-md);
}

.c-card h4 {
    font-size: 1.2rem;
    color: var(--primary-teal-dark);
}

/* --- Metodología --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #e0e0e0;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px;
    box-sizing: border-box;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.step-number {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-teal);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    z-index: 10;
}

.timeline-item:nth-child(odd) .step-number {
    right: -20px;
}

.timeline-item:nth-child(even) .step-number {
    left: -20px;
}

.timeline-content h3 {
    color: var(--primary-teal);
}

/* --- Evidencia --- */
.bg-dark {
    background-color: var(--text-charcoal);
    color: #fff;
    /* Ensure text is white in this section */
}

/* Fixing transparency issue for Evidence items */
.evidence-item h3 {
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-top: -2.5rem;
}

.evidence-item p {
    color: #fff;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.evidence-img {
    width: 100%;
    max-width: 450px;
    height: 250px;
    /* Fixed height for alignment */
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin: 0 auto 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.evidence-img:hover {
    transform: scale(1.02);
}

.quote-box {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 8px;
}

.quote-text {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--accent-gold);
}

/* --- Equipo --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    color: var(--primary-teal);
    margin-bottom: 0.2rem;
}

.team-info .role {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--text-light);
    /* Or primary-teal if preferred, sticking to sober style */
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--primary-teal);
    transform: translateY(-2px);
}


/* --- FAQ --- */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-charcoal);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 3rem;
    /* Space for the icon */
}

/* Custom indicator (replacing default pointer) */
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-teal);
    transition: transform 0.3s ease;
    font-weight: 400;
}

details[open] .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
    /* Turns + into x */
}

details[open] .faq-question {
    color: var(--primary-teal);
    border-bottom: 1px solid #eee;
}

.faq-answer {
    padding: 1.5rem;
    padding-top: 0;
    color: var(--text-light);
    line-height: 1.6;
    animation: fade-in-slide 0.3s ease;
}

@keyframes fade-in-slide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Footer --- */
footer {
    background-color: var(--bg-dark-gray);
    color: #fff;
    padding: 5rem 0 2rem;
}

.footer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-sub {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 3rem;
}

.glow-effect {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.contact-details {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: #ccc;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copyright {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #888;
}

/* --- Animations --- */
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px;
        background-color: var(--primary-teal);
        transition: var(--transition);
    }

    .service-row,
    .service-row.reverse {
        flex-direction: column;
        text-align: center;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        width: 100%;
        padding-left: 30px;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .step-number {
        left: -20px !important;
        right: auto !important;
    }
}

/* CTA Section Overhaul */
.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.cta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

.cta-form {
    background-color: rgba(255, 255, 255, 0.05);
    /* very light overlay */
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.full-width-btn {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1rem;
}

/* Mobile Responsiveness for CTA */
@media (max-width: 900px) {
    .cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-img {
        min-height: 250px;
        max-height: 400px;
    }
}

.contact-details-vertical {
    margin-top: 1.5rem;
    color: #ccc;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
    /* Align left as it is under the image in the left column */
    font-size: 0.95rem;
}

.contact-details-vertical p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
}

.contact-details-vertical i {
    color: var(--accent-gold);
    width: 20px;
    height: 20px;
}

/* Form Feedback & Loading */
.form-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    min-height: 24px;
    font-weight: 500;
}

.form-message.success {
    color: #4ade80;
}

.form-message.error {
    color: #ef4444;
}

.cta-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.loader {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}