/* ===================================
   SOZPIC LANDING PAGE
   Editorial Modern Design - Extension of Brand
   =================================== */

@import url('styles.css'); /* Import base styles/vars */

:root {
    --section-padding: 6rem 2rem;
    --section-padding-mobile: 4rem 1.5rem;
    --highlight-color: #eaff00; /* Fluorescent yellow */
    --bg-gray: #f8f8f8;
}

/* Reset overrides specific for landing scrolling */
html, body {
    overflow: auto !important; /* Enable native scrolling */
    height: auto !important;
    scroll-behavior: smooth;
}

body {
    padding-top: 80px; /* Header height space */
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.site-header.hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.header-logo img {
    height: 2rem;
    width: auto;
}

.header-nav {
    display: none;
}

.header-nav a {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 1.5rem;
    position: relative;
    transition: opacity 0.3s;
}

.header-nav a:hover {
    opacity: 0.6;
}

.header-cta .btn {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--black);
    transition: 0.3s;
}

/* Mobile Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
}

/* ===================================
   COMMON COMPONENTS
   =================================== */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding-mobile);
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.section-number {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.3;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    border: 1px solid var(--black);
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--black);
}

.btn-outline {
    background: transparent;
    color: var(--black);
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

.btn-submit {
    width: 100%;
    cursor: pointer;
    background: var(--black);
    color: var(--white);
    border: none;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* Highlight Effects */
.highlight {
    background: linear-gradient(120deg, transparent 0%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 90%;
    transition: background-size 0.8s ease;
}

.highlight.visible {
    background-image: linear-gradient(120deg, var(--highlight-color) 0%, var(--highlight-color) 100%);
}

.highlight-light {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight-light::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--highlight-color);
    z-index: -1;
    opacity: 0.8;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-logo {
    width: 80px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-title {
    font-size: 3rem;
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.text-outline {
    -webkit-text-stroke: 1px var(--black);
    color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.hero-actions .btn {
    width: 100%;
    max-width: 300px;
}

/* ===================================
   PROBLEM SECTION
   =================================== */

.problem-lead {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 400;
    margin-bottom: 4rem;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.problem-card {
    border-left: 2px solid var(--black);
    padding-left: 1.5rem;
}

.problem-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.problem-card p {
    font-size: 1rem;
    opacity: 0.7;
    line-height: 1.5;
}

/* ===================================
   AUDIT SECTION (Inverted)
   =================================== */

.inverted-bg {
    background: var(--black);
    color: var(--white);
}

.light {
    color: var(--white);
}

.section-number.light {
    opacity: 0.4;
}

.audit-text {
    margin-bottom: 3rem;
}

.lead-text {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 2.5rem;
}

.audit-list {
    list-style: none;
}

.audit-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.list-icon {
    color: var(--highlight-color);
    font-size: 1.5rem;
    line-height: 1;
}

.audit-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.audit-list p {
    opacity: 0.7;
    font-size: 0.95rem;
}

.deliverable-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.deliverable-card h3 {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.deliverable-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.check {
    color: var(--highlight-color);
}

/* ===================================
   SOLUTIONS & CASES GRID
   =================================== */

.solutions-intro {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.solutions-grid, .cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.solution-card, .case-card {
    background: var(--bg-gray);
    padding: 2rem;
    transition: transform 0.3s ease;
}

.solution-card:hover, .case-card:hover {
    transform: translateY(-5px);
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.solution-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.solution-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.solution-features {
    list-style: none;
    font-size: 0.85rem;
    opacity: 0.7;
}

.solution-features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.solution-features li::before {
    content: '•';
    position: absolute;
    left: 0;
}

/* Cases Specific */
.case-metric {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
}

.case-context h4 {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.case-context p {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.5;
}

/* ===================================
   TECH STRIP
   =================================== */

.tech-strip {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Línea animada superior */
.tech-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
    animation: techLine 3s ease-in-out infinite;
}

@keyframes techLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.tech-label {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tech-item {
    text-align: center;
    padding: 1.25rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--highlight-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tech-item:hover::after {
    width: 60%;
}

.tech-item:hover .tech-name {
    color: var(--highlight-color);
}

.tech-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.35rem;
    transition: color 0.3s ease;
}

.tech-desc {
    display: block;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.tech-item:hover .tech-desc {
    color: #999;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .tech-item {
        border-right: 1px solid #222;
    }
    
    .tech-item:last-child {
        border-right: none;
    }
}

/* ===================================
   COSTS SECTION (Consolidated)
   =================================== */

.costs-section {
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

/* Info Block (Upper part) */
.tic20-info-block {
    background: var(--white);
    padding: 2rem;
    border: 1px solid #ddd;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tic20-header-block h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.convocatoria-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.convocatoria-link:hover {
    color: var(--black);
    text-decoration: underline;
}

.badge-85 {
    background: var(--black);
    color: var(--white);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.tic20-header-block p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.tic20-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    .tic20-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.detail-item h4 {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

.detail-item p {
    font-weight: 700;
    font-size: 1rem;
}

/* Cost Breakdown (Lower part) */
.tic20-cost-breakdown {
    background: var(--white);
    padding: 2.5rem;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid var(--black);
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cost-label {
    font-weight: 500;
}

.cost-value {
    font-weight: 700;
}

.cost-value.strike {
    text-decoration: line-through;
    opacity: 0.5;
}

.cost-row.subsidy {
    color: #009900;
}

.cost-row.total {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--black);
    font-size: 1.6rem;
}

.cost-row.total .cost-value {
    font-weight: 900;
}

.cost-note {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 1.5rem;
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

.tic20-deadline {
    font-size: 1rem;
    font-weight: 700;
    color: #e60000;
    text-align: center;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.contact-lead {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-num {
    background: var(--black);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.contact-direct {
    margin-top: 2rem;
    font-size: 0.9rem;
}

.contact-link {
    color: var(--black);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 1rem;
    background: #fdfdfd;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
    background: #fff;
}

/* Checkbox Privacidad */
.form-group-checkbox {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--black);
}

.checkbox-label a {
    color: var(--black);
    text-decoration: underline;
}

.checkbox-label a:hover {
    opacity: 0.7;
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.footer-logo span {
    font-weight: 700;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    opacity: 0.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--white);
    opacity: 0.6;
    text-decoration: none;
}

.footer-copyright {
    opacity: 0.3;
    font-size: 0.8rem;
}

.tic20-cost-breakdown {
    background: #f0f0f0;
    padding: 2rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ddd;
}

.tic20-cost-breakdown h3 {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.05em;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.cost-label {
    font-weight: 500;
}

.cost-value {
    font-weight: 700;
}

.cost-value.strike {
    text-decoration: line-through;
    opacity: 0.5;
}

.cost-row.subsidy {
    color: #009900; /* Green for savings */
}

.cost-row.total {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--black);
    font-size: 1.4rem;
}

.cost-row.total .cost-value {
    font-weight: 900;
}

.cost-note {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
}

/* ===================================
   FORM FEEDBACK
   =================================== */

.form-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.95rem;
    border-radius: 4px;
}

.form-feedback.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-feedback.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.form-feedback a {
    color: inherit;
    font-weight: bold;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===================================
   ANIMATIONS (Scroll Fade Up)
   =================================== */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ===================================
   RESPONSIVE (Tablet & Desktop)
   =================================== */

@media (min-width: 768px) {
    :root {
        --section-padding: 6rem 4rem;
    }
    
    .header-nav {
        display: block;
    }
    
    .header-cta .btn {
        display: inline-block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    .hero-actions .btn {
        width: auto;
        min-width: 200px;
    }

    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .audit-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tic20-details {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        text-align: center;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
        gap: 6rem;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-title {
        font-size: 6rem;
    }
    
    .problem-lead {
        font-size: 2rem;
    }
}
