/* Appsamblea - Static Site CSS */
/* Colors:
   - VIOLET: #807FFF
   - DARK VIOLET: #4645C6
   - GREEN: #C2DB2E
   - Typography: Space Grotesk
*/

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --violet: #807FFF;
    --dark-violet: #4645C6;
    --green: #C2DB2E;
    --black: #000000;
    --white: #ffffff;
    --gray: #f1f1f1;
    --dark-gray: #666666;
    --font-family: 'Space Grotesk', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    letter-spacing: -3px;
}

h2 {
    font-size: 3rem;
    letter-spacing: -2px;
}

h3 {
    font-size: 2rem;
    letter-spacing: -1px;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 400;
}

.highlight {
    color: var(--violet);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    background: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--violet);
    color: var(--white);
    border-color: var(--violet);
}

.btn-primary:hover {
    background: var(--dark-violet);
    border-color: var(--dark-violet);
}

.btn-secondary {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

/* .btn-demo is now handled under nav links for header consistency */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--violet);
}

.nav-item.current-menu-item .nav-link {
    color: var(--violet);
}

/* Header Buttons Specificity Fix */
.btn-demo,
.nav-link.btn-demo {
    background: var(--black) !important;
    color: var(--white) !important;
    border-color: var(--black) !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    display: inline-block !important;
}

.btn-demo:hover,
.nav-link.btn-demo:hover {
    background: var(--violet) !important;
    border-color: var(--violet) !important;
    color: var(--white) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--black);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    /* FIX: Ruta local y gradiente para legibilidad */
    background-image: linear-gradient(rgba(248, 249, 250, 0.8), rgba(255, 255, 255, 0.8)),
        url('../images/votaciones-hibridas-presenciales-online.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Value Section */
.value-section {
    padding: 100px 0;
    background: var(--white);
}

.value-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.plus,
.minus {
    color: var(--green);
    font-weight: 800;
}

.section-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

/* Marquee */
.marquee-section {
    padding: 60px 0;
    background: var(--violet);
    color: var(--white);
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee__group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    animation: scroll 40s linear infinite;
}

.marquee__group_2 {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    animation: scroll 30s linear infinite;
}

.marquee__group_3 {
    margin-bottom: 17px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    animation: scroll 30s linear infinite;
}

.marquee__group_inverso {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    animation: inverso 30s linear infinite;
}

.marquee p {
    margin-right: 40px;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.2rem;
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes inverso {
    100% {
        transform: translateX(0);
    }

    0% {
        transform: translateX(-100%);
    }
}

/* Clients Section */
.clients-section {
    padding: 80px 0;
    background: #fafafa;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.client-logo {
    max-height: 60px;
    max-width: 120px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--violet);
    line-height: 1;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
}

.stat-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

/* Why Section */
.why-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.why-header {
    text-align: center;
    margin-bottom: 4rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.why-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.why-item:hover {
    transform: translateY(-5px);
}

.why-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--violet);
    margin-bottom: 1rem;
}

.why-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--black);
}

.why-features {
    list-style: none;
    text-align: left;
}

.why-features li {
    padding: 0.5rem 0;
    color: var(--dark-gray);
}

.why-subtitle {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--black);
}

/* Demo Benefits */
.demo-benefits {
    margin: 2rem 0;
}

.demo-benefits h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.demo-list {
    list-style: none;
    text-align: left;
}

.demo-list li {
    padding: 0.5rem 0;
    color: var(--white);
    font-size: 1rem;
}

/* Features Banner */
.features-banner {
    padding: 40px 0;
    background: var(--green);
    color: var(--black);
    overflow: hidden;
}

/* === Utility Classes === */
.text-lime {
    color: #C2DB2E;
}

.text-violet {
    color: #807FFF;
}

.text-purple {
    color: #807FFF;
}

/* Alias para compatibilidad */

.social-icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon-svg {
    transform: scale(1.1);
}

/* Testimonials */
.testimonials-section {
    padding: 100px 0;
    background: var(--white);
    text-align: center;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-item {
    display: none;
    padding: 2rem;
}

.testimonial-item.active {
    display: block;
}

.testimonial-content {
    text-align: center;
}

blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.testimonial-author {
    margin-top: 2rem;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
}

.author-company {
    color: var(--violet);
    font-weight: 500;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--violet);
    background: transparent;
    color: var(--violet);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--violet);
    color: var(--white);
}

/* Pricing */
.pricing-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--green) 50%, var(--white) 50%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    background: var(--violet);
    color: var(--white);
    transform: scale(1.05);
}

.pricing-card.enterprise {
    background: var(--black);
    color: var(--white);
}

.plan-header {
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: lowercase;
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--violet);
    font-family: var(--font-family);
}

.pricing-card.featured .price-number,
.pricing-card.enterprise .price-number {
    color: var(--white);
}

.price-period {
    font-size: 1rem;
    color: var(--violet);
}

.pricing-card.featured .price-period,
.pricing-card.enterprise .price-period {
    color: var(--white);
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.feature-item img {
    height: 20px;
    width: 20px;
    margin-right: 10px;
}

.plan-note {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-note-small {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.pricing-card.featured .plan-note-small,
.pricing-card.enterprise .plan-note-small {
    color: rgba(255, 255, 255, 0.8);
}

.plan-btn {
    width: 100%;
}

/* Contact & Forms */
.contact-section {
    padding: 100px 0;
    background: var(--violet);
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2,
.contact-info h3 {
    color: var(--white);
}

.contact-subtitle {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-email {
    font-size: 1.1rem;
}

.contact-form {
    max-width: 600px;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    flex: 100%;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-family: var(--font-family);
    background: var(--white);
    color: var(--black);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid var(--green);
}

.form-group select {
    cursor: pointer;
}

/* FIX: Checkbox visible y moderno */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--violet);
    flex-shrink: 0;
}

/* Ocultamos el checkmark personalizado antiguo que rompía el diseño */
.checkmark {
    display: none;
}

.submit-btn {
    background: var(--green);
    color: var(--black);
    border: none;
    font-size: 1.2rem;
    padding: 15px 40px;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #aec529;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Breaking News */
.breaking-news {
    background: var(--black);
    color: var(--white);
    padding: 20px 0;
    overflow: hidden;
}

/* Blog Section */
.blog-section {
    padding: 100px 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
}

.blog-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--violet);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
    /* Fallback si no hay imagen */
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-title a {
    text-decoration: none;
    color: var(--black);
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--violet);
}

.blog-excerpt {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-likes {
    color: var(--violet);
    font-weight: 600;
}

.blog-read-more {
    color: var(--violet);
    text-decoration: none;
    font-weight: 600;
}

.blog-read-more:hover {
    text-decoration: underline;
}

/* Newsletter */
.newsletter-section {
    padding: 80px 0;
    background: var(--green);
    color: var(--black);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.newsletter-subtitle {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1rem;
}

.newsletter-description {
    font-size: 1.1rem;
    color: var(--black);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form .form-group {
    flex: 1;
}

.newsletter-form input {
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form .btn {
    align-self: flex-start;
    background: var(--violet);
    color: var(--white);
    border: none;
}

.newsletter-policy {
    font-size: 0.9rem;
    color: var(--black);
    margin-top: 1rem;
}

.newsletter-policy a {
    color: var(--violet);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo .logo {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--violet);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid #ddd;
    padding: 20px;
    z-index: 2000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-logo img {
    height: 30px;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-text p {
    margin-bottom: 0.5rem;
}

.cookie-link {
    color: var(--violet);
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-buttons .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background: var(--white);
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-gray);
}

.cookie-modal-body {
    padding: 20px;
}

.cookie-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cookie-section:last-child {
    border-bottom: none;
}

.cookie-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cookie-section p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 0;
    flex: 1;
    margin-right: 1rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--violet);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 2rem;
}

.grecaptcha-badge {
    visibility: hidden;
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Hero responsive */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2.5rem;
    }

    /* Contact responsive */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Newsletter responsive */
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Footer responsive */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    /* Cookie banner responsive */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        justify-content: center;
    }

    /* Pricing responsive */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    /* Stats responsive */
    .stats-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    /* Why section responsive */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Clients responsive */
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .client-logo {
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-subtitle {
        font-size: 2rem;
    }

    .newsletter-subtitle {
        font-size: 2rem;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   ANIMACIÓN CARRUSEL DE LOGOS
   ========================================= */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Movemos el 50% porque hemos duplicado el contenido */
        transform: translateX(-50%);
    }
}

.logo-carousel {
    /* El display flex es vital para que estén en fila */
    display: flex !important;
    /* El ancho debe ajustarse al contenido */
    width: max-content !important;
    /* 40s es la velocidad. Ajusta si quieres más rápido o lento */
    animation: scrollLogos 40s linear infinite !important;
    /* Truco para activar la aceleración de hardware y que vaya fluido */
    will-change: transform;
}

/* Ajustes para móviles */
@media (max-width: 768px) {

    /* En móvil ponemos los textos arriba y logos abajo */
    .clients-stats-section .combined-wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }

    .stats-side {
        text-align: center !important;
        padding-left: 0 !important;
        margin-bottom: 40px;
        flex: 1 1 auto !important;
        /* Permitir que se ajuste */
    }

    /* En móvil los logos deben ser más pequeños */
    .logo-carousel img {
        height: 80px !important;
        margin-right: 40px !important;
    }
}

/* =========================================
   DISEÑO CORREGIDO: BARRA Y TESTIMONIOS
   ========================================= */

/* 1. Barra de Texto (Features Banner) - Ahora Blanca */
.features-banner {
    background-color: #ffffff !important;
    /* Fondo Blanco */
    border-top: 1px solid #eaeaea;
    /* Línea sutil arriba */
    border-bottom: 1px solid #eaeaea;
    /* Línea sutil abajo */
    padding: 30px 0 !important;
}

.features-banner .marquee p {
    color: #000000 !important;
    /* Letras Negras */
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 1.2rem !important;
    letter-spacing: 2px;
}

/* 2. Sección Testimonios - Fondo Gris Suave */
.testimonials-section {
    background-color: #f9f9f9 !important;
    /* Fondo general gris */
    padding: 120px 0 !important;
}

.testimonials-section .section-title {
    margin-bottom: 60px !important;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* 3. La "Tarjeta" del Testimonio */
.testimonial-item {
    background: #ffffff;
    /* Tarjeta Blanca */
    padding: 60px 40px;
    border-radius: 20px;
    /* Bordes redondeados */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    /* Sombra elegante */
    max-width: 900px;
    margin: 0 auto;
    /* Centrada */
}

/* Texto de la cita */
blockquote {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem !important;
    font-weight: 500 !important;
    color: #000000 !important;
    line-height: 1.4 !important;
    font-style: normal !important;
    /* Quitamos cursiva antigua */
    margin-bottom: 40px !important;
}

/* Autor y Empresa */
.author-name {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #000000;
}

.author-company {
    font-size: 0.9rem !important;
    color: #807FFF !important;
    /* Morado corporativo */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    font-weight: 700 !important;
}

/* 4. Flechas de navegación */
.testimonials-nav {
    margin-top: 50px !important;
}

.nav-btn {
    width: 60px !important;
    height: 60px !important;
    border: 1px solid #e0e0e0 !important;
    /* Borde gris suave */
    color: #000 !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    margin: 0 10px;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    border-color: #000 !important;
    background: #000 !important;
    color: #fff !important;
}

/* =========================================
   PRICING TABLE REPLICA
   ========================================= */

/* 1. Fondo de la sección (Verde Lima Corporativo) */
.pricing-section {
    background: #C2DB2E !important;
    /* El color exacto de la imagen */
    padding: 80px 0 100px !important;
}

/* 2. Contenedor Grid */
.pricing-table {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
    background: transparent;
}

/* 3. Columnas Generales */
.pricing-col {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    /* Separación entre columnas */
    margin: 0 10px;
    border-radius: 5px;
    /* Ligero borde redondeado */
    overflow: hidden;
}

/* 4. Columna de Etiquetas (Izquierda) */
.labels-col {
    background: transparent !important;
    /* Fondo transparente */
    text-align: left;
    font-weight: 700;
    flex: 0 0 200px;
    /* Ancho fijo para etiquetas */
}

.labels-col .p-row {
    justify-content: flex-start;
    /* Alinear texto a la izquierda */
    padding-left: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.labels-col .header {
    background: transparent;
}

/* 5. Cabeceras (Basic, Business...) */
.pricing-header-cell {
    padding: 30px 10px;
    text-align: center;
    height: 180px;
    /* Altura fija para alinear */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.p-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: lowercase;
}

.p-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: #807FFF;
    /* Morado */
    line-height: 1;
}

.p-period {
    color: #807FFF;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 6. Filas de datos */
.p-row {
    height: 60px;
    /* Altura fija para alinear todas las columnas */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.95rem;
    color: #333;
}

.p-row img {
    width: 24px;
    height: auto;
}

/* 7. Columna Enterprise (Morada) */
.enterprise-col {
    background: #807FFF !important;
    color: white !important;
    transform: scale(1.05);
    /* Un poco más grande como en la original */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.enterprise-col .pricing-header-cell {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.enterprise-col .p-name,
.enterprise-col .p-price,
.enterprise-col .p-period,
.enterprise-col .p-row {
    color: white !important;
}

.enterprise-col .p-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 8. Botones */
.btn-pricing-action {
    background: #dcebff;
    /* Azul muy clarito */
    color: #807FFF;
    font-weight: 800;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s;
}

.btn-pricing-action:hover {
    background: #807FFF;
    color: white;
}

.white-btn {
    background: white;
    color: #807FFF;
}

.white-btn:hover {
    background: #f0f0f0;
    color: #4645C6;
}

/* 9. Responsive */
@media (max-width: 900px) {
    .pricing-table {
        flex-direction: column;
    }

    .labels-col {
        display: none;
        /* Ocultar etiquetas en móvil para simplificar */
    }

    .pricing-col {
        margin-bottom: 20px;
    }

    .enterprise-col {
        transform: scale(1);
    }
}

/* =========================================
   CARRUSEL INFINITO DE NOTICIAS (VERSIÓN SEGURA)
   ========================================= */

/* 1. Contenedor principal: FUERZA a no salirse de la pantalla */
.news-carousel-wrapper {
    display: block;
    /* Asegura que es un bloque */
    width: 100%;
    /* Ocupa todo el ancho disponible */
    max-width: 100vw;
    /* NUNCA más ancho que la ventana */
    overflow: hidden;
    /* CORTA todo lo que sobresalga */
    position: relative;
    /* Necesario para el contexto */
    padding: 20px 0;

    /* Máscara opcional para desvanecer bordes (si da problemas, bórrala) */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* 2. La pista que se mueve (El tren de noticias) */
.news-track {
    display: flex;
    width: max-content;
    /* El ancho es la suma de todas las noticias */
    gap: 30px;
    /* Espacio entre tarjetas */

    /* La animación mueve la pista hacia la izquierda */
    animation: scrollNews 60s linear infinite;
    will-change: transform;
    /* Optimización para que vaya suave */
}

/* Pausar animación al poner el ratón encima */
.news-track:hover {
    animation-play-state: paused;
}

/* 3. Tarjeta de noticia (Tamaño fijo para que no se deformen) */
.blog-item {
    width: 350px;
    /* Ancho fijo: VITAL para que no se rompa */
    min-width: 350px;
    /* Asegura que no se encoja */
    flex-shrink: 0;
    /* Prohibido encogerse */

    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* 4. Animación de desplazamiento */
@keyframes scrollNews {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Se mueve exactamente el 50% (la mitad duplicada) */
        transform: translateX(-50%);
    }
}

/* 5. Ajustes para móviles */
@media (max-width: 768px) {
    .blog-item {
        width: 280px;
        /* Más estrechas en móvil */
        min-width: 280px;
    }

    .news-track {
        gap: 20px;
        /* Menos espacio entre ellas */
    }
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Imagen más compacta */
.blog-image {
    height: 180px;
    /* Altura fija */
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Recorta la imagen para llenar el hueco sin deformar */
    transition: transform 0.5s ease;
}

.blog-item:hover .blog-image img {
    transform: scale(1.05);
    /* Zoom sutil al pasar el ratón */
}

/* Contenido más compacto */
.blog-content {
    padding: 20px;
}

.blog-date {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    /* Sobrescribimos estilo anterior */
    background: rgba(128, 127, 255, 0.9);
    /* Morado semitransparente */
    font-size: 0.75rem;
    padding: 4px 10px;
    font-weight: 700;
}

.blog-title {
    font-size: 1.1rem !important;
    line-height: 1.3;
    margin-bottom: 10px;
    height: 3.9rem;
    /* Altura fija para 3 líneas aprox */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.blog-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Cortar texto si es muy largo */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: #807FFF;
}