/* Variables CSS */
:root {
    --bg-color: #111111;
    --primary-color: #1E1E2E;
    --accent-color: #FF4C60;
    --secondary-color: #3AE5FF;
    --text-color: #F8F8F8;
    --soft-accent: #2A2A40;
    --contrast-element: #FFD500;
    --gradient-1: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    --gradient-2: linear-gradient(45deg, var(--primary-color), var(--soft-accent));
    --gradient-3: linear-gradient(180deg, var(--bg-color), var(--primary-color));
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header y navegación innovadora */
.header-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--soft-accent);
}

.navbar-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: lowercase;
    letter-spacing: -0.5px;
}

.brand-title img {
    max-width: 200px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    background: rgba(255, 76, 96, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Menú móvil hamburguesa */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section con diseño hexagonal */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 76, 96, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(58, 229, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-text {
    color: var(--accent-color);
    -webkit-text-fill-color: var(--accent-color);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(248, 248, 248, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 76, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 76, 96, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

/* Diseño hexagonal innovador */
.hero-visual {
    position: relative;
    height: 500px;
}

.hexagon-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hexagon {
    position: absolute;
    width: 200px;
    height: 200px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.5s ease;
    cursor: pointer;
}

.hex-1 {
    top: 50px;
    left: 50px;
    animation: float 3s ease-in-out infinite;
}

.hex-2 {
    top: 150px;
    right: 50px;
    animation: float 3s ease-in-out infinite 1s;
}

.hex-3 {
    bottom: 50px;
    left: 100px;
    animation: float 3s ease-in-out infinite 2s;
}

.hexagon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hexagon:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Sección de Especialidades con diseño zigzag */
.specialties-section {
    padding: 8rem 0;
    background: var(--gradient-2);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.specialty-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.specialty-item.right-aligned {
    grid-template-columns: 1fr 1fr;
}

.specialty-item.right-aligned .specialty-content {
    order: 2;
}

.specialty-item.right-aligned .specialty-image {
    order: 1;
}

.specialty-content {
    position: relative;
    z-index: 2;
}

.specialty-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(255, 76, 96, 0.3);
}

.specialty-icon i {
    font-size: 2rem;
    color: white;
}

.specialty-content h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.specialty-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(248, 248, 248, 0.8);
}

.specialty-features {
    list-style: none;
    padding: 0;
}

.specialty-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: rgba(248, 248, 248, 0.9);
}

.specialty-features li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.specialty-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.specialty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.specialty-image:hover img {
    transform: scale(1.05);
}

/* Servicios con tarjetas flotantes */
.services-section {
    padding: 8rem 0;
    background: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: stretch;
}

.service-card {
    background: var(--primary-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--soft-accent);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.floating {
    animation: cardFloat 4s ease-in-out infinite;
}

.service-card:nth-child(2) {
    animation-delay: 1s;
}

.service-card:nth-child(3) {
    animation-delay: 2s;
}

.service-card:nth-child(4) {
    animation-delay: 3s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 76, 96, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(255, 76, 96, 0.3);
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.service-card p {
    color: rgba(248, 248, 248, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-shrink: 0;
}

.service-features {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.feature-tag {
    background: var(--soft-accent);
    color: var(--contrast-element);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Estadísticas con diseño circular */
.stats-section {
    padding: 6rem 0;
    background: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 секции в ряд на ПК */
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-item {
    text-align: center;
}

.stat-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
}

.stat-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: conic-gradient(from 0deg, var(--accent-color), var(--secondary-color), var(--contrast-element), var(--accent-color));
    border-radius: 50%;
    animation: rotate 3s linear infinite;
}

.stat-circle::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    z-index: 2;
    position: relative;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Testimonios con carrusel */
.testimonials-section {
    padding: 8rem 0;
    background: var(--bg-color);
}

.testimonials-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-item {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.testimonial-item.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.testimonial-content {
    background: var(--primary-color);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    border: 1px solid var(--soft-accent);
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    color: var(--accent-color);
    font-family: serif;
}

.testimonial-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(248, 248, 248, 0.9);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}

.testimonial-author h5 {
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: rgba(248, 248, 248, 0.7);
    font-size: 0.9rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--soft-accent);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* CTA Section con diseño asimétrico */
.cta-section {
    padding: 8rem 0;
    background: var(--gradient-2);
    position: relative;
    overflow: hidden;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--contrast-element);
}

.cta-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(248, 248, 248, 0.8);
}

.btn-cta {
    background: var(--contrast-element);
    color: var(--bg-color);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(255, 213, 0, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 213, 0, 0.4);
}

.cta-visual {
    position: relative;
    height: 300px;
}

.cta-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: shapeFloat 4s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    top: 40%;
    right: 20%;
    animation-delay: 1s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: var(--contrast-element);
    bottom: 20%;
    left: 40%;
    animation-delay: 2s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

/* Footer */
.footer {
    background: var(--primary-color);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--soft-accent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-brand h4 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(248, 248, 248, 0.7);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(248, 248, 248, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-section p {
    color: rgba(248, 248, 248, 0.7);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--soft-accent);
    margin-top: 2rem;
    color: rgba(248, 248, 248, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid var(--soft-accent);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        height: 300px;
    }

    .specialty-item,
    .specialty-item.right-aligned {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .specialty-item.right-aligned .specialty-content,
    .specialty-item.right-aligned .specialty-image {
        order: unset;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar-custom {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-circle {
        width: 120px;
        height: 120px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cookie-popup-content {
        padding: 1.2rem 0.7rem;
        width: 95vw;
        font-size: 0.95rem;
    }
}

.cookie-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(17, 17, 17, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.cookie-popup-content {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 2rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    max-width: 90vw;
    width: 400px;
    text-align: center;
    border: 1px solid var(--soft-accent);
}

.cookie-popup-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: rgba(248, 248, 248, 0.9);
}

.cookie-popup-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}