/* ==========================================================================
   REDECAM - Seguridad Electrónica y Tecnología
   Estilos Completos con Marquee Infinito
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* Variables CSS */
/* ---------------------------------------------------------------------- */
:root {
    --color-primary: #0066cc;
    --color-primary-dark: #004999;
    --color-secondary: #00d4aa;
    --color-text: #1a1a1a;
    --color-text-light: #4a4a4a;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-dark: #1a1a1a;
    --color-border: #e0e0e0;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------------------------------------------------------------------- */
/* Reset y Base */
/* ---------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ---------------------------------------------------------------------- */
/* Container */
/* ---------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------------------------------------------- */
/* Navbar */
/* ---------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-base);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    height: 24px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ---------------------------------------------------------------------- */
/* Hero Section */
/* ---------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85), rgba(0, 73, 153, 0.75));
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 120px 0 60px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
}

.hero-tagline {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: white;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: white;
}

.hero-scroll span {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.scroll-indicator {
    width: 24px;
    height: 36px;
    border: 2px solid white;
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% {
        top: 6px;
        opacity: 1;
    }
    50% {
        top: 18px;
        opacity: 0.3;
    }
}

/* ---------------------------------------------------------------------- */
/* Sections Base */
/* ---------------------------------------------------------------------- */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ---------------------------------------------------------------------- */
/* Historia Section */
/* ---------------------------------------------------------------------- */
.historia {
    background-color: var(--color-bg-light);
}

.historia-text {
    max-width: 900px;
    margin: 0 auto;
}

.historia-text .lead {
    font-size: 22px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.6;
}

.historia-text p {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.historia-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.stat:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ---------------------------------------------------------------------- */
/* Servicios Section */
/* ---------------------------------------------------------------------- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
}

.service-description {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    font-size: 15px;
    color: var(--color-text-light);
    padding: 8px 0 8px 28px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
    font-size: 18px;
}

/* ---------------------------------------------------------------------- */
/* Metodología Section */
/* ---------------------------------------------------------------------- */
.metodologia {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.metodologia-timeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline-item {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition-base);
}

.timeline-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.timeline-number {
    position: absolute;
    top: -20px;
    left: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
}

.timeline-arrow {
    font-size: 32px;
    color: var(--color-primary);
    font-weight: 700;
}

/* ---------------------------------------------------------------------- */
/* Innovación Section - FORMATO 2x2 */
/* ---------------------------------------------------------------------- */
.innovacion {
    background-color: var(--color-bg-light);
}

.innovacion-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.innovacion-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: center;
}

.innovacion-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.innovacion-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.innovacion-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

.innovacion-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
}

.innovacion-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ---------------------------------------------------------------------- */
/* Impacto Section */
/* ---------------------------------------------------------------------- */
.impacto-content {
    max-width: 1000px;
    margin: 0 auto;
}

.impacto-text {
    margin-bottom: 60px;
}

.impacto-text p {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.impacto-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.impacto-stat {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.impacto-stat:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.impacto-number {
    display: block;
    font-size: 56px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.impacto-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ---------------------------------------------------------------------- */
/* Testimonios Section */
/* ---------------------------------------------------------------------- */
.testimonios {
    background-color: var(--color-bg-light);
}

.testimonios-carousel-wrapper {
    max-width: 900px;
    margin: 0 auto 60px;
    overflow: hidden;
}

.testimonios-carousel {
    position: relative;
    width: 100%;
}

.testimonio-slide {
    display: none;
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.testimonio-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonio-stars {
    font-size: 28px;
    color: #ffc107;
    margin-bottom: 24px;
    letter-spacing: 4px;
}

.testimonio-stars .empty {
    color: #ddd;
}

.testimonio-text {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonio-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.testimonio-author strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.testimonio-author span {
    font-size: 14px;
    color: var(--color-text-light);
}

/* Formulario de Reseñas */
.resena-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.resena-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 32px;
}

.resena-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition-base);
}

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

.rating-group {
    text-align: center;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 36px;
    margin-top: 12px;
}

.star {
    cursor: pointer;
    color: #ddd;
    transition: var(--transition-base);
}

.star:hover,
.star.selected {
    color: #ffc107;
    transform: scale(1.1);
}

/* ---------------------------------------------------------------------- */
/* Clientes Section con MARQUEE INFINITO */
/* ---------------------------------------------------------------------- */
.clientes {
    padding: 100px 0;
    background: white;
}

.clientes-subsection {
    margin-bottom: 80px;
}

.clientes-subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 16px;
}

.subsection-description {
    font-size: 16px;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Marquee Container - Desplazamiento infinito */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: var(--color-bg-light);
    padding: 40px 0;
    border-radius: var(--radius-lg);
}

.marquee-track {
    display: flex;
    gap: 60px;
    align-items: center;
    animation: marqueeScroll 40s linear infinite;
    width: fit-content;
}

.marquee-reverse {
    animation: marqueeScrollReverse 40s linear infinite;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeScrollReverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.marquee-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition-base);
}

.marquee-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ---------------------------------------------------------------------- */
/* Futuro Section */
/* ---------------------------------------------------------------------- */
.futuro {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.futuro .section-label {
    color: rgba(255, 255, 255, 0.9);
}

.futuro .section-title {
    color: white;
}

.futuro .section-description {
    color: rgba(255, 255, 255, 0.85);
}

.futuro-content {
    max-width: 900px;
    margin: 0 auto;
}

.futuro-content .lead {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 48px;
    text-align: center;
    line-height: 1.7;
}

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

.futuro-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.futuro-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
}

.futuro-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.futuro-item p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* ---------------------------------------------------------------------- */
/* Footer */
/* ---------------------------------------------------------------------- */
.footer {
    background-color: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-4px);
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: white;
}

/* ---------------------------------------------------------------------- */
/* Animaciones de Revelado */
/* ---------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------------------- */
/* Responsive Design */
/* ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .metodologia-timeline {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .timeline-arrow {
        display: none;
    }

    .innovacion-grid-2x2 {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .historia-stats {
        grid-template-columns: 1fr;
    }

    .impacto-stats {
        grid-template-columns: 1fr;
    }

    .futuro-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .resena-form-container {
        padding: 32px 24px;
    }

    .footer-legal {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .marquee-item {
        width: 140px;
        height: 80px;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .testimonio-slide {
        padding: 32px 24px;
    }

    .resena-title {
        font-size: 24px;
    }

    .star-rating {
        font-size: 28px;
    }
}
