/* Variables globales */
:root {
    --primary-color: #ff0000; /* Cambiado de cyan a rojo */
    --background-color: #000;
    --text-color: #fff;
    --accent-color: #ff0000; /* Tono más claro del rojo para acentos */
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.hero-content {
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    color: white;
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
}

/* Efecto de resplandor base */
.hero-content h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.15;
    filter: blur(20px);
    border-radius: 60px; /* Bordes redondeados */
    animation: pulseGlow 3s ease-in-out;
    z-index: -1;
}

/* Línea decorativa inferior */
.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        transparent
    );
    animation: lineReveal 3s ease-in forwards;
}

/* Animación de la línea inferior */
@keyframes lineReveal {
    0% {
        width: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 100%;
    }
}

/* Texto con efecto de sombra múltiple */
.hero-content h1 {
    text-shadow: 
        0 0 10px rgba(255, 62, 62, 0.3),
        0 0 20px rgba(255, 62, 62, 0.2),
        0 0 30px rgba(255, 62, 62, 0.1),
        2px 2px 2px rgba(0, 0, 0, 0.5);
    animation: titleFloat 6s ease-in-out;
}

/* Animación del resplandor de fondo */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.15;
        filter: blur(20px);
        transform: scale(1);
    }
    50% {
        opacity: 0.25;
        filter: blur(25px);
        transform: scale(1.05);
    }
}


/* Animación de flotación suave */
@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Efecto de partículas en hover */
.hero-content h1:hover::before {
    animation: particlesBurst 3.5s ease-out forwards;
    border-radius: 60px; /* Bordes redondeados */
}

/* Animación del efecto de partículas */
@keyframes particlesBurst {
    0% {
        transform: scale(1);
        opacity: 0.15;
        border-radius: 60px; /* Mantener el borde redondeado */
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
        border-radius: 70px; /* Aumentar redondeado */
    }
    100% {
        transform: scale(1);
        opacity: 0.15;
        border-radius: 60px; /* Volver a su forma inicial */
    }
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: clamp(2rem, 4vw, 3rem);
        padding: 0.3rem 0.8rem;
    }
    
    .hero-content h1::before {
        filter: blur(15px);
    }
}

.video-container {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 62, 62, 0.3); /* Borde sutil en rojo */
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    background-color: #000; /* Asegura que el fondo sea negro mientras carga */
    aspect-ratio: 16 / 9; /* Mantiene la proporción del video */
    filter: brightness(1.0); 
}

/* Estilizando los controles nativos del video */
video::-webkit-media-controls {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
}

/* Servicios */
.servicios {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.servicios h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.servicios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease forwards;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(255, 62, 62, 0.2);
}

.icon-container {
    width: 80px;
    height: 80px;
    background: rgba(255, 62, 62, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.icon-container i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.servicio-card:hover .icon-container {
    background: rgba(255, 62, 62, 0.2);
    transform: scale(1.1);
}

.servicio-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.servicio-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}

/* Animación inicial */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .servicios h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .icon-container {
        width: 60px;
        height: 60px;
    }

    .icon-container i {
        font-size: 1.5rem;
    }

    .servicio-card {
        padding: 1.5rem;
    }

    .servicio-card h3 {
        font-size: 1.25rem;
    }

    .servicio-card p {
        font-size: 0.9rem;
    }
}

/* Animación inicial */
.servicio-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInAccordion 0.8s ease forwards;
}

.servicio-card:nth-child(1) {
    animation-delay: 0s;
}

.servicio-card:nth-child(2) {
    animation-delay: 0.2s;
}

.servicio-card:nth-child(3) {
    animation-delay: 0.4s;
}

.servicio-card:nth-child(4) {
    animation-delay: 0.6s;
}

/* Animación */
@keyframes fadeInAccordion {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* iPhone */
.app-showcase {
    padding: 5rem 2rem;
}

.showcase-content {
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-content h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mockup-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.iphone-mockup {
    width: 270px;
    height: 550px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(223, 131, 131, 0.5);
}

.device-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 35px;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .app-showcase {
        padding: 3rem 1rem;
    }

    .iphone-mockup {
        width: 240px;
        height: 490px;
    }
}


/* FAQ Section */
.faq {
    padding: 5rem 2rem;
}

.faq h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255,62,62,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,62,62,0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    color: #fff; /* Color blanco por defecto */
    margin: 0;
    font-size: 1.1rem;
    transition: color 0.3s ease; 
}

.faq-item.active .faq-question h3 {
    color: var(--primary-color); /* Cambiar a rojo cuando esté activo */
}

.faq-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    color: #fff;
    opacity: 0.8;
    margin: 0;
}

.faq-item.active .faq-answer {
    height: auto;
    opacity: 1;
}

.faq-item.active .faq-answer-content {
    transform: translateY(0);
    opacity: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .faq {
        padding: 3rem 1rem;
    }
    
    .faq h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}
/* CTA Button */

.cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 3rem 0;
}
.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary-color);
    color: var(--text-color); /* Cambiado a blanco para mejor contraste */
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-color);
}

.cta-final {
    text-align: center;
    padding: 5rem 2rem;
}

/* Animaciones */
@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255,62,62,0.5); /* Cambiado a rojo */
    }
    to {
        text-shadow: 0 0 20px rgba(255,62,62,0.8), /* Cambiado a rojo */
                     0 0 30px rgba(255,62,62,0.6); /* Cambiado a rojo */
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .servicios-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .servicio-card,
    .faq-item {
        padding: 1.5rem;
    }
}


.testimonials {
    padding: 5rem 2rem;
}

.testimonials h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255,62,62,0.1);
}

.testimonial-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.transformation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .transformation-image {
    transform: scale(1.05);
}

.testimonial-content {
    padding: 2rem;
    position: relative;
    flex: 1;
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.5;
    position: absolute;
    top: -1rem;
    left: 1rem;
}

.testimonial-content p {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.author-name {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    text-align: right;
}

@media (max-width: 768px) {
    .testimonials {
        padding: 3rem 1rem;
    }
    
    .testimonials h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .testimonial-image {
        height: 250px;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonial-image {
        height: 200px;
    }
}
.offer-title {
    font-size: 2rem;
    text-align: center;
    color: var(--text-color);
    margin: 2rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

