/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0B68D1;
    --secondary-blue: #2B75C8;
    --primary-gradient: linear-gradient(270deg, #2B75C8 0.06%, #0B68D1 99.91%);
    --bg-dark: #131313;
    --text-white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

html, body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
}

h2.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.highlight {
    color: var(--primary-blue);
}

.highlight-dot {
    color: var(--primary-blue);
    font-size: 1.2em;
}

.highlight-text {
    color: var(--primary-blue);
    font-weight: 800;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 40px;
}

.logo-text, .footer-logo-text {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-text {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
    transition: color 0.3s ease;
}

.logo:hover .logo-text {
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-weight: 700;
    font-size: 1rem;
}

.nav-links a {
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.btn-login {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2), inset 0 2px 5px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-links .btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--text-white);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--text-white);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(11, 104, 209, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-white);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 2px 5px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Floating Banner */
.floating-banner-wrapper {
    background-color: var(--bg-dark);
    padding: 80px 10% 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.floating-banner {
    width: 80%;
    max-width: 1100px;
    background: url('../vectores/rectangulo_texto_conecta_tu_inventario.png') no-repeat center center;
    background-size: 100% 100%;
    border-radius: 12px;
    padding: 2.5rem 4rem;
    position: relative;
    border: none;
    filter: drop-shadow(0 42px 4px rgba(0, 0, 0, 0.20));
}

.floating-banner p {
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.small-logo-text {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Benefits Section */
.benefits {
    padding: 60px 10% 0;
    background-color: var(--bg-dark);
}

.benefits-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 4rem;
}

.benefits-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding-bottom: 80px;
}

.benefit-item h3 {
    color: var(--primary-blue);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.benefit-item h3 .dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: inline-block;
}

.benefit-item p {
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 700;
    margin-left: 1.5rem;
}

.benefits-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: flex-end;
}

.vector-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110%;
    z-index: 1;
}

.chica-img {
    position: relative;
    width: 100%;
    z-index: 2;
    display: block;
}

/* Quote Section */
.quote-section {
    position: relative;
    padding: 100px 10% 180px;
    text-align: center;
}

.quote-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

blockquote {
    position: relative;
    z-index: 3;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.5;
    max-width: 900px;
    padding: 2rem;
}

.quote-mark {
    color: var(--primary-blue);
}

/* Control Section */
.control-section {
    position: relative;
    padding: 80px 10% 120px;
    background-color: var(--bg-dark);
    overflow: hidden;
}

.control-title {
    color: var(--primary-blue);
    position: relative;
    z-index: 3;
    margin-bottom: 4rem;
}

.vector-bg-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    overflow: hidden;
}

.vector-bg-bottom img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 109.68vw;
    object-fit: cover;
    transform: translateY(-26%);
}

.control-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 3;
    max-width: 1100px;
    margin: 0 auto;
}

.phone-mockup-container {
    position: relative;
    width: 320px;
    height: auto;
    flex-shrink: 0;
}

.phone-frame {
    width: 100%;
    position: relative;
    z-index: 3;
    display: block;
}

.phone-logo-overlay {
    position: absolute;
    top: 45%;
    left: 39%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 5;
}

.phone-logo-overlay img {
    height: 35px;
}

.logo-text-white {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: 1px;
}

.control-points {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    flex: 1;
    max-width: 500px;
}

.point-item {
    position: relative;
}

.point-item p {
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 700;
}

.has-pointer {
    position: relative;
}

.pointer-triangle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 85px;
    z-index: 10;
}

.black-line {
    width: 100%;
    height: 13px;
    background-color: #131313;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 15;
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    padding: 5rem 10% 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo img {
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 3rem;
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: background 0.3s;
}

.social-icons .icon:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

.menu-toggle { display: none; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .benefits-container, .control-container {
        flex-direction: column;
    }
    .benefits-image, .phone-mockup-container {
        margin-top: 3rem;
    }
    h1 {
        font-size: 2.8rem;
    }
    .vector-bg-bottom {
        height: 100%;
        top: 0;
        bottom: 0;
        overflow: hidden;
    }
    .vector-bg-bottom img {
        position: absolute;
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center center;
        transform: none;
        z-index: 1;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 5%;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(19, 19, 19, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 99;
    }
    .nav-links.active {
        right: 0;
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 100;
    }
    .menu-toggle span {
        width: 30px;
        height: 3px;
        background-color: white;
        transition: transform 0.3s, opacity 0.3s;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    h1 {
        font-size: 2rem;
        text-align: left;
    }
    h1 br, blockquote br, .point-item p br {
        display: none; /* Let text flow naturally on mobile */
    }
    .hero {
        padding: 0 5%;
        justify-content: flex-start;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    .hero-buttons a {
        text-align: center;
    }
    .floating-banner {
        padding: 2rem 1.5rem;
        width: 95%;
        background-size: cover;
    }
    .pointer-triangle {
        display: none;
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    h2.section-title {
        font-size: 1.8rem;
    }
    .benefits {
        padding: 40px 5% 0;
    }
    .benefits-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        align-items: center;
    }
    .benefits-list {
        display: contents; /* Allows grid items inside to participate in benefits-container */
    }
    .benefit-item:nth-child(1) {
        grid-column: 1 / -1;
    }
    .benefit-item:nth-child(2) {
        grid-column: 1 / -1;
    }
    .benefit-item:nth-child(3) {
        grid-column: 1;
    }
    .benefits-image {
        grid-column: 2;
        grid-row: 3;
        margin-top: 0;
    }
    .control-section {
        padding: 40px 5% 80px;
    }
    .quote-section {
        padding: 100px 5% 150px;
    }
    blockquote {
        font-size: 1.3rem;
        padding: 1rem;
    }
    .benefit-item p {
        font-size: 0.85rem;
        margin-left: 0;
        margin-top: 0.5rem;
        line-height: 1.4;
    }
    .benefit-item h3 {
        font-size: 1rem;
    }
    .benefit-item h3 .dot {
        width: 8px;
        height: 8px;
    }
    .phone-mockup-container {
        width: 250px;
    }
    .point-item p {
        color: #ffffff; /* Make all text white */
        text-shadow: none; /* Remove shadows as requested */
    }
    .point-item .highlight-text, .point-item .highlight-dot {
        color: #ffffff;
        text-shadow: none;
    }
    h2.section-title.control-title {
        color: #ffffff; /* Change title color */
    }
}

@media (min-width: 1600px) {
    .control-section h2 {
        margin-bottom: 2rem;
    }
    .control-points {
        margin-top: -1.5rem;
        gap: 2rem;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
