/* RESET & GLOBALS */
:root {
    --primary-red: #C0392B;
    --dark-gray: #1a1a1a;
    --medium-gray: #3d3d3d;
    --light-gray: #f4f4f4;
    --text-color: #333;
    --border-color: #ddd;
}

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

html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Poppins', sans-serif; 
    color: var(--text-color); 
    line-height: 1.6; 
    overflow-x: hidden;
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-image: url(img/bg-hero.svg);
    background-size: cover;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.logo-container {
    margin-bottom: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.logo-text {
    font-size: 48px;
    font-weight: 900;
    color: var(--dark-gray);
    letter-spacing: -2px;
}

.logo-square {
    width: 35px;
    height: 35px;
    background: var(--primary-red);
    border-radius: 4px;
}

.logo-subtitle {
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 400;
}
.logo-img { max-height: 90px; width: 170px;margin-bottom: 20px;}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--dark-gray);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 555px;
    
    
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* .hero-image-placeholder::before {
    content: 'Imagen Hero';
    position: absolute;
    font-size: 18px;
    color: #999;
    font-weight: 600;
} */

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.hero-img[src]:not([src=""]):not([src="placeholder-hero.jpg"]) {
    display: block;
}

.hero-img[src]:not([src=""]):not([src="placeholder-hero.jpg"]) ~ .hero-image-placeholder::before {
    display: none;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
    background: #a02f24;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.3);
}

.link-hero{padding:12px 18px; color:#1a1a1a;font-weight: 700; text-decoration: none;}

/* CARACTERISTICAS SECTION */
.caracteristicas-section {
    padding: 70px 20px;
    background: #CCCCCC;
    background-image: url(img/bg-caracteristicas.svg);
    background-size: cover;
}

.caracteristicas-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.caracteristica-card {
    background: white;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.caracteristica-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.caracteristica-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-gray);
    line-height: 1.3;
}

.caracteristica-card p {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

/* FLUX SECTION */
.flux-section {
    padding: 20px 20px;
    background:linear-gradient(0deg,rgba(255, 255, 255, 1) 0%, rgba(204, 204, 204, 1) 100%);
}

.flux-container {
    max-width: 1400px;
    margin: 0 auto;
}

.flux-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-gray);
    position: relative;
}

.flux-subtitle { text-align: center; }

.flux-title::before,
.flux-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 3px;
    background: var(--dark-gray);
}

.flux-title::before {
    left: 0;
}

.flux-title::after {
    right: 0;
}

.flux-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--dark-gray);
    z-index: 1;
}

.flux-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.flux-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-red);
    border-radius: 50%;
    margin: 40px auto 30px;
    border: 4px solid #d3d3d3;
    box-shadow: 0 0 0 4px var(--dark-gray);
}

.flux-step p {
    font-size: 15px;
    color: var(--dark-gray);
    font-weight: 500;
    max-width: 200px;
    margin: 0 auto;
    line-height: 1.4;
}

/* VENTAJAS SECTION */
.ventajas-section {
    padding: 100px 20px;
    background: white;
    background-image: url(img/bg-ventajas.svg);
    background-size: cover;
}

.ventajas-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-gray);
    position: relative;
    display: inline-block;
}

.section-header h2::before,
.section-header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 250px;
    height: 3px;
    background: var(--dark-gray);
}

.section-header h2::before {
    right: calc(100% + 30px);
}

.section-header h2::after {
    left: calc(100% + 30px);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-color);
    margin-top: 20px;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.ventaja-card {
    padding: 60px 50px;
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s ease;
}

.ventaja-card:hover {
    transform: translateY(-5px);
}

.ventaja-card.dark {
    background: var(--medium-gray);
    color: white;
}

.ventaja-card.red {
    background: var(--primary-red);
    color: white;
}

.ventaja-icon {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ventaja-icon svg {
    stroke: var(--dark-gray);
}

.ventaja-card h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.ventaja-card p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
}

/* FORM SECTION */
.form-section {
    padding: 100px 20px;
    background: var(--primary-red);
    background-image: url(img/bg-formulario.svg);
    background-size: cover;
}

.form-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.form-content {
    color: white;
}

.form-content h2 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.form-subtitle {
    font-size: 16px;
    margin-bottom: 50px;
    opacity: 0.95;
}

.form-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
}

.feature-item svg {
    flex-shrink: 0;
}

.form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.input-group input,
.input-group select {
    padding: 18px;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    transition: border-color 0.3s ease;
    color: var(--dark-gray);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-bottom-color: var(--dark-gray);
}

.input-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 40px;
}

.btn-submit {
    background: var(--medium-gray);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    align-self: flex-end;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--dark-gray);
    transform: translateY(-2px);
}

/* FOOTER SECTION */
.footer-section {
    padding: 60px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.footer-logo .logo {
    justify-content: center;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
}

.footer-logo .logo-subtitle {
    text-align: center;
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.back-to-top:hover {
    background: #a02f24;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* RESPONSIVE */

/* Tablets */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        gap: 50px;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    
    .caracteristicas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flux-timeline {
        flex-wrap: wrap;
        gap: 60px;
        align-items: center;
    }
    
    .flux-step {
        flex-basis: calc(50% - 30px);
    }
    
    .timeline-line {
        display: none;
    }
    
    .flux-dot {
        margin: 0 auto 20px;
    }
    
    .section-header h2::before,
    .section-header h2::after {
        width: 150px;
    }
    
    .form-container {
        gap: 50px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 20px;
        min-height: auto;
    }
    
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-right {
        order: -1;
    }
    
    .hero-image-placeholder {
        max-width: 100%;
        /* aspect-ratio: 16/9; */
    }
    
    .logo-container {
        margin-bottom: 40px;
    }
    
    .logo-text {
        font-size: 36px;
    }
    
    .logo-square {
        width: 28px;
        height: 28px;
    }
    
    .hero-content h1 {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .btn-primary {
        width: 100%;
        padding: 16px 30px;
        box-sizing: border-box;
    }
    
    .caracteristicas-section {
        padding: 60px 20px;
    }
    
    .caracteristicas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .caracteristica-card {
        padding: 35px 25px;
    }
    
    .caracteristica-card h3 {
        font-size: 20px;
    }
    
    .flux-section {
        padding: 60px 20px;
    }
    
    .flux-title {
        font-size: 28px;
        margin-bottom: 50px;
    }
    
    .flux-title::before,
    .flux-title::after {
        width: 20%;
    }
    
    .flux-timeline {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .flux-step {
        flex-basis: 100%;
    }
    
    .flux-dot {
        margin: 20px auto;
    }

    .flux-step p {
        font-size: 14px;
        max-width: 100%;
    }
    
    .ventajas-section {
        padding: 60px 20px;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header h2::before,
    .section-header h2::after {
        display: none;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .ventajas-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .ventaja-card {
        padding: 80px 30px 30px;
    }
    
    .ventaja-icon {
        width: 60px;
        height: 60px;
        right: 50%;
        transform: translateX(50%);
        top: -35px;
    }
    
    .ventaja-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .ventaja-card h3 {
        font-size: 22px;
    }
    
    .ventaja-card p {
        font-size: 14px;
    }
    
    .form-section {
        padding: 60px 20px;
    }
    
    .form-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .form-content h2 {
        font-size: 32px;
    }
    
    .form-content {
        text-align: center;
    }
    
    .form-features {
        align-items: center;
    }
    
    .form-wrapper {
        padding: 35px 25px;
    }
    
    .btn-submit {
        width: 100%;
        box-sizing: border-box;
    }

    .link-hero {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .footer-section {
        padding: 40px 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .flux-title {
        font-size: 24px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .form-content h2 {
        font-size: 28px;
    }
}
