/* ============================================
   TYPOGRAPHY SYSTEM (EXACT FROM FIGMA)
   ============================================ */

:root {
    /* Base font size */
    font-size: 16px;
    
    /* Typography Scale */
    --h1-size: 2.3125rem; /* 37px */
    --h2-size: 2.0000rem; /* 32px */
    --h3-size: 1.7500rem; /* 28px */
    --body1-size: 1.5000rem; /* 24px */
    --body2-size: 1.3125rem; /* 21px */
    --body3-size: 1.1250rem; /* 18px */
    --caption1-size: 1.0000rem; /* 16px */
    --caption2-size: 0.8750rem; /* 14px */
    --caption3-size: 0.7500rem; /* 12px */
    
    /* Colors */
    --color-purple-dark: #562394;
    --color-purple-light: #54009E;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-dark-grey: #1a1a1a;
    
    /* Layout */
    --container-width: 1128px;
    --section-gap: 10px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-white);
    background-color: var(--color-black);
    background-image: url('../assets/img/Background_tile.svg');
    background-size: 16% auto;
    background-repeat: repeat;
    background-position: top left;
    line-height: 1.5;
    min-height: 100vh;
}

/* Overlay for background opacity */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);/* rgba(0, 0, 0, 0.7) */
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   TYPOGRAPHY CLASSES
   ============================================ */

h1, h2, h3, p {
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
}

h3 {
    font-size: var(--h3-size);
}

.body1 {
    font-size: var(--body1-size);
    font-family: 'Audiowide', sans-serif;
}

.body1-regular {
    font-size: var(--body1-size);
    font-weight: 400;
}

.body1-semibold {
    font-size: var(--body1-size);
    font-weight: 600;
}

.body1-black {
    font-size: var(--body1-size);
    font-weight: 900;
}

.body2 {
    font-size: var(--body2-size);
    font-family: 'Audiowide', sans-serif;
}

.body2-regular {
    font-size: var(--body2-size);
    font-weight: 400;
}

.body2-semibold {
    font-size: var(--body2-size);
    font-weight: 600;
}

.body2-black {
    font-size: var(--body2-size);
    font-weight: 900;
}

.body3 {
    font-size: var(--body3-size);
    font-family: 'Audiowide', sans-serif;
}

.body3-regular {
    font-size: var(--body3-size);
    font-weight: 400;
}

.body3-semibold {
    font-size: var(--body3-size);
    font-weight: 600;
}

.body3-black {
    font-size: var(--body3-size);
    font-weight: 900;
}

.caption1 {
    font-size: var(--caption1-size);
    font-family: 'Audiowide', sans-serif;
}

.caption1-regular {
    font-size: var(--caption1-size);
    font-weight: 400;
}

.caption1-semibold {
    font-size: var(--caption1-size);
    font-weight: 600;
}

.caption1-black {
    font-size: var(--caption1-size);
    font-weight: 900;
}

.caption2 {
    font-size: var(--caption2-size);
    font-family: 'Audiowide', sans-serif;
}

.caption2-regular {
    font-size: var(--caption2-size);
    font-weight: 400;
}

.caption2-semibold {
    font-size: var(--caption2-size);
    font-weight: 600;
}

.caption2-black {
    font-size: var(--caption2-size);
    font-weight: 900;
}

.caption3 {
    font-size: var(--caption3-size);
    font-family: 'Audiowide', sans-serif;
}

.caption3-regular {
    font-size: var(--caption3-size);
    font-weight: 400;
}

.caption3-semibold {
    font-size: var(--caption3-size);
    font-weight: 600;
}

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

/* ============================================
   MAIN CONTAINER
   ============================================ */

.main-container {
    width: var(--container-width);
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

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

.hero-section {
    width: var(--container-width);
    height: 720px;
    padding: 100px 72px;
    background-image: url('../assets/img/Background_Hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--section-gap);
}

/* Dark/purple overlay for hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(86, 35, 148, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%); */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-intro {
    font-size: var(--caption1-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 10px;
}

.hero-logo {
    margin: 10px 0;
}

.hero-logo img {
    max-width: 100%;
    height: auto;
}

.hero-tagline {
    font-size: var(--body2-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-white);
    margin: 10px 0;
}

.btn-primary {
    background: linear-gradient( var(--color-purple-dark), var(--color-purple-light));
    color: var(--color-white);
    font-family: 'Audiowide', sans-serif;
    font-size: var(--body3-size);
    font-weight: 400;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient( #6a2ba4, #6a00be);
    box-shadow: 0 4px 12px rgba(86, 35, 148, 0.4);
}

/* ============================================
   VALUE PROPOSITION SECTION
   ============================================ */

.value-prop-section {
    width: var(--container-width);
    padding-bottom: 96px;
    margin-bottom: var(--section-gap);
}

.section-title {
    font-size: var(--h2-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 40px;
}

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

.value-prop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.value-prop-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-title {
    font-size: var(--h3-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-purple-dark);
    margin-bottom: 10px;
}

.card-description {
    font-size: var(--body3-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 10px;
}

.card-image {
    width: 100%;
    margin: 10px 0;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.card-link {
    font-size: var(--caption1-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-white);
    margin-top: 10px;
}

/* ============================================
   SOFTWARE INTERACTIVO SECTION
   ============================================ */

.software-interactivo-section {
    width: var(--container-width);
    margin-bottom: var(--section-gap);
    padding: 40px 0;
}

.software-interactivo-text {
    font-size: var(--body3-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.software-interactivo-image {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.software-interactivo-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */

.why-choose-section {
    width: var(--container-width);
    margin-bottom: var(--section-gap);
    padding: 40px 0;
}

.why-choose-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.why-choose-item {
    margin-bottom: 5px;
}

.why-choose-heading {
    font-size: var(--body2-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 10px;
}

.why-choose-text {
    font-size: var(--body3-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-white);
}

/* ============================================
   METHOD SECTION
   ============================================ */

.method-section {
    width: var(--container-width);
    margin-bottom: var(--section-gap);
    padding: 40px 0;
}

.method-steps {
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
    padding-left: 40px;
}

.method-steps::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;     /* separación respecto al primer círculo */
    bottom: 0;  /* separación respecto al último círculo */
    width: 4px;
    background: var(--color-white);
    transform: translateX(-50%);
}

.method-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--color-purple-dark);
    border: 10px solid var(--color-black); /* contorno negro */
    color: var(--color-white);
    font-size: var(--body3-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    left: -15px;
    top: 0;
    transform: translateX(-50%);
}

.step-content {
    flex: 1;
    padding-left: 30px; /* espacio entre el círculo y el número */
}

.step-heading {
    font-size: var(--body2-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 5px;
}

.step-description {
    font-size: var(--body3-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-white);
}

/* ============================================
   CTA PRE-FORM SECTION
   ============================================ */

.cta-pre-section {
    width: var(--container-width);
    margin-bottom: var(--section-gap);
    padding: 40px 0;
    text-align: center;
}

.cta-text {
    font-size: var(--body2-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 20px;
}

/* ============================================
   CTA FORM SECTION
   ============================================ */

.cta-form-section {
    width: var(--container-width);
    margin-bottom: var(--section-gap);
    padding: 40px 0 80px;
    background-color: var(--color-black);
}

.form-intro {
    font-size: var(--body3-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 30px;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: var(--caption1-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--color-dark-grey);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--color-white);
    font-size: var(--body3-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-purple-light);
}

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

.contact-form .btn-primary {
    margin-top: 20px;
    align-self: flex-end;
}

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

.footer {
    width: var(--container-width);
    padding: 60px 0 40px;
    margin-top: var(--section-gap);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: var(--color-black);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    z-index: -1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-content .footer-column:first-child {
    align-items: center;
    text-align: center;
    gap: 0;
}

.footer-logo-img {
    margin-bottom: 0;
}

.footer-content .footer-column:first-child .footer-logo-img {
    margin-bottom: 0;
}

.footer-logo-img img {
    max-width: 150px;
    height: auto;
}

.footer-logo-text {
    font-size: var(--caption1-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 0;
}

.footer-content .footer-column:first-child .footer-logo-text {
    margin-bottom: 0;
}

.footer-copyright {
    font-size: var(--caption2-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-white);
}

.footer-heading {
    font-size: var(--caption1-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li a {
    font-size: var(--caption1-size);
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: var(--color-purple-dark);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS (Basic)
   ============================================ */

@media (max-width: 1200px) {
    .main-container,
    .hero-section,
    .value-prop-section,
    .why-choose-section,
    .method-section,
    .cta-pre-section,
    .cta-form-section,
    .footer {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-section {
        height: auto;
        min-height: 600px;
    }
    
    .value-prop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .value-prop-grid {
        grid-template-columns: 1fr;
    }
    
    .method-steps {
        padding-left: 0;
    }
    
    .method-steps::before {
        display: none;
    }
    
    .step-number {
        position: static;
        margin-bottom: 10px;
    }
}

/* Estilos para los modales */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-purple-dark) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    line-height: 1;
}

.close:hover,
.close:focus {
    transform: scale(1.2);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
    line-height: 1.6;
    color: #333;
}

.modal-body h3 {
    color: var(--color-purple-dark);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
}

.modal-body h4 {
    color: var(--color-purple-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.modal-body h5 {
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.modal-body p {
    margin-bottom: 15px;
    text-align: justify;
}

.modal-body ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.modal-body li {
    margin-bottom: 10px;
}

.modal-body strong {
    color: var(--color-purple-dark);
}

/* Scrollbar personalizada */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--color-purple-dark);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--color-purple-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
}