/* --- 1. VARIABLES & RESET --- */
:root {
    --bg-dark: #000000;
    --bg-card: #121212;
    --bg-accent: #1a1a1a;
    --gold: #D4AF37;
    --gold-light: #FFD700;
    --text-white: #F0F0F0;
    --text-gray: #A0A0A0;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. TIPOGRAFÍA --- */
h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    color: var(--gold);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    /* Responsive font size */
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--gold-light);
}

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

.text-gray {
    color: var(--text-gray);
}

/* --- 3. UTILIDADES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 1px;
}

.btn-neon {
    background-color: transparent;
    border: 2px solid var(--gold-light);
    color: var(--gold-light);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-neon:hover {
    background-color: var(--gold-light);
    color: #000;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.btn-gold {
    background-color: var(--gold);
    color: #000;
    border: 2px solid var(--gold);
}

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

/* Fondo de circuitos */
.circuit-bg {
    position: relative;
}

.circuit-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('http://googleusercontent.com/image_collection/image_retrieval/13029744499978651356');
    background-size: cover;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.circuit-bg>* {
    position: relative;
    z-index: 1;
}

/* --- 4. HEADER / NAV --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #333;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.8;
}

.header-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    transition: var(--transition);
}

.logo-link:hover .header-logo {
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--gold);
    text-decoration: none;
}

.nav-cta {
    font-size: 0.9rem;
    padding: 10px 20px;
}

/* --- 5. HERO SECTION --- */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    padding-top: 80px;
    /* Offset for fixed header */
}

.hero-content {
    max-width: 900px;
    padding: 20px;
}

.hero-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px var(--gold));
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    margin: 1.5rem 0 3rem;
}

/* --- 6. PROBLEM SECTION --- */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.problem-list ul {
    list-style: none;
    margin-top: 2rem;
}

.problem-list li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.problem-list i {
    color: #ff4d4d;
    font-size: 1.5rem;
    margin-top: 3px;
}

.impact-box {
    border-left: 4px solid var(--gold);
    padding-left: 20px;
    margin-top: 2rem;
}

.impact-quote {
    font-size: 1.4rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-white);
}

/* --- 7. SOLUTION BANNER --- */
.solution {
    background: linear-gradient(90deg, #000 0%, #111 50%, #000 100%);
    text-align: center;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

/* --- 8. SERVICES (CARDS) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.card i {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.card-result {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1px;
}

/* --- 9. DEEP DIVE SECTIONS (ALTERNATING) --- */
.deep-dive {
    background-color: var(--bg-accent);
}

.feature-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Workflow Animation mockup */
.workflow-visual {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 2rem 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.wf-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.wf-icon {
    width: 50px;
    height: 50px;
    background: #222;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.wf-arrow {
    color: var(--gold);
    font-size: 1.2rem;
}

/* Chat Mockup */
.chat-mockup {
    border: 2px solid #333;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.chat-mockup img {
    width: 100%;
    display: block;
}

/* --- 10. METHODOLOGY (TIMELINE) --- */
.timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 4rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 220px;
    text-align: center;
    padding: 0 10px;
    margin-bottom: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--gold);
    font-weight: 900;
    font-size: 1.2rem;
}

/* --- 11. COMPARISON TABLE --- */
.comparison-wrapper {
    overflow-x: auto;
    margin-top: 3rem;
    border: 1px solid #333;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th,
td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #222;
}

th {
    background: #151515;
    color: var(--gold);
    text-transform: uppercase;
}

td:first-child {
    border-right: 1px solid #222;
    color: var(--text-gray);
}

td:last-child {
    color: var(--text-white);
    font-weight: 700;
    background: rgba(212, 175, 55, 0.05);
}

/* --- 12. FOOTER / FINAL CTA --- */
.footer-cta {
    text-align: center;
    background: linear-gradient(0deg, #0d0d0d 0%, #1a1a1a 100%);
    border-top: 1px solid #333;
}

.footer-content h2 {
    margin-bottom: 1.5rem;
}

.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--gold-light);
}

.copyright {
    margin-top: 4rem;
    color: #555;
    font-size: 0.8rem;
}

/* --- 13. CONTACT FORM --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto 3rem;
    background: var(--bg-card);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 3rem 2.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    background: var(--bg-dark);
    border: 2px solid #333;
    border-radius: 8px;
    padding: 15px;
    color: var(--text-white);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
}

/* --- ANIMATIONS --- */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- MEDIA QUERIES (RESPONSIVENESS) --- */
@media (min-width: 992px) {
    .problem-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-block.reverse {
        flex-direction: row-reverse;
    }

    .feature-block {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .feature-text,
    .feature-visual {
        flex: 1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content {
        padding: 0 10px;
    }

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

    /* Timeline Vertical on Mobile */
    .timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }

    .timeline::before {
        width: 2px;
        height: 100%;
        top: 0;
        left: 45px;
    }

    .timeline-step {
        display: flex;
        text-align: left;
        gap: 20px;
        margin-bottom: 30px;
    }

    .step-number {
        margin: 0;
        min-width: 50px;
    }

    .nav-container .btn {
        display: none;
    }

    /* Ocultar CTA header en móvil para limpieza */
    .logo-text {
        font-size: 1.2rem;
    }

    /* Form responsive */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* --- 14. POLICY PAGES STYLES --- */
.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.policy-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #333;
}

.policy-header h1 {
    margin-bottom: 1rem;
}

.last-updated {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-style: italic;
}

.policy-section {
    margin-bottom: 3rem;
    background: var(--bg-card);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 2.5rem;
    transition: var(--transition);
}

.policy-section:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.policy-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 15px;
}

.policy-section h2 i {
    font-size: 1.5rem;
    color: var(--gold);
}

.policy-section h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    color: var(--text-white);
}

.policy-section p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-section ul,
.policy-section ol {
    color: var(--text-gray);
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-section li {
    margin-bottom: 0.8rem;
}

.policy-section strong {
    color: var(--text-white);
}

.highlight-box {
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 5px;
}

.highlight-box p {
    margin: 0;
    color: var(--text-white);
}

.warning-box {
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 5px;
}

.contact-info {
    background: var(--bg-accent);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.contact-info h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--gold-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    text-decoration: underline;
}

.back-home {
    text-align: center;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .policy-container {
        padding: 100px 15px 60px;
    }

    .policy-section {
        padding: 1.5rem;
    }

    .policy-section h2 {
        font-size: 1.4rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- 15. INTL-TEL-INPUT CUSTOM STYLES --- */
.iti {
    width: 100%;
}

.iti__flag-container {
    background: var(--bg-dark);
    border: 2px solid #333;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.iti__selected-flag {
    background: var(--bg-dark);
    padding: 0 15px;
    transition: var(--transition);
}

.iti__selected-flag:hover,
.iti__selected-flag:focus {
    background: var(--bg-accent);
}

.iti__arrow {
    border-top-color: var(--gold);
}

.iti__arrow--up {
    border-bottom-color: var(--gold);
}

.iti__country-list {
    background: var(--bg-card);
    border: 2px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    max-height: 200px;
}

.iti__country {
    padding: 10px 15px;
    color: var(--text-white);
    transition: var(--transition);
}

.iti__country:hover,
.iti__country.iti__highlight {
    background: var(--bg-accent);
    color: var(--gold);
}

.iti__country-name,
.iti__dial-code {
    color: var(--text-white);
}

.iti__country.iti__highlight .iti__country-name,
.iti__country.iti__highlight .iti__dial-code {
    color: var(--gold);
}

.iti__divider {
    border-bottom: 1px solid #333;
}

/* Ajustar el input de teléfono para que funcione con el selector */
.iti input[type="tel"] {
    width: 100%;
    padding-left: 90px !important;
    border-radius: 8px !important;
}

.iti__selected-dial-code {
    color: var(--gold);
    font-weight: 700;
}

/* Responsive para intl-tel-input */
@media (max-width: 768px) {
    .iti input[type="tel"] {
        padding-left: 85px !important;
    }
}

/* --- 16. MODAL DE CONFIRMACIÓN --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    animation: slideUp 0.3s ease;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.modal-icon.success {
    color: var(--gold);
}

.modal-icon.error {
    color: #ff4d4d;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.modal-message {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-button {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 15px 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}

.modal-button:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}