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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0e17;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

section {
    padding: 80px 0;
}

/* Header */
.header {
    background-color: rgba(10, 14, 23, 0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #1a5fb4;
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
}

.logo-img {
    height: 45px; /* Ajusta según el tamaño de tu logo */
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.logo-highlight {
    color: #1a5fb4;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #1a5fb4;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #1a5fb4;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-llamar {
    background: linear-gradient(90deg, #1a5fb4, #2d87d8);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-llamar:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 95, 180, 0.3);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    background: radial-gradient(circle at top right, rgba(26, 95, 180, 0.2), transparent 50%),
                radial-gradient(circle at bottom left, rgba(45, 135, 216, 0.15), transparent 50%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: #1a5fb4;
    text-shadow: 0 0 10px rgba(26, 95, 180, 0.5);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #b0b0b0;
    max-width: 500px;
}

.btn-hero {
    display: inline-block;
    background: linear-gradient(90deg, #25D366, #128C7E);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-hero i {
    margin-right: 10px;
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.3);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #2d87d8;
    transition: transform 0.5s;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Services Section - MODIFICADO PARA 3 ARRIBA, 2 ABAJO */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.section-title span {
    color: #1a5fb4;
}

/* Contenedor principal de servicios con distribución específica */
.services-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Fila de 3 tarjetas (arriba) */
.services-row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Fila de 2 tarjetas (abajo) - centradas */
.services-row-bottom {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.services-row-bottom .service-card {
    flex: 1;
    max-width: 400px;
}

/* Estilos base de tarjetas */
.service-card {
    background: rgba(30, 35, 48, 0.8);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(45, 135, 216, 0.2);
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(26, 95, 180, 0.2);
    border-color: #1a5fb4;
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon span {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para la lista de servicios */
.service-list {
    list-style-type: none;
    text-align: left;
    margin-top: 15px;
    flex-grow: 1;
}

.service-list li {
    padding: 8px 0;
    color: #b0b0b0;
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
}

.service-list li:before {
    content: "▸";
    color: #1a5fb4;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Tarjeta destacada para el servicio de IA */
.highlight-card {
    position: relative;
    border: 2px solid #25D366;
    background: rgba(37, 211, 102, 0.05);
}

.highlight-card .service-icon span {
    font-size: 3rem;
}

.service-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(90deg, #25D366, #128C7E);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 1;
}

/* Features Section - ACTUALIZADA CON NUEVOS PUNTOS */
.features {
    background: rgba(30, 35, 48, 0.5);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    transition: transform 0.3s;
    background: rgba(30, 35, 48, 0.6);
    border: 1px solid rgba(45, 135, 216, 0.1);
}

.feature:hover {
    transform: translateY(-10px);
    border-color: #1a5fb4;
    box-shadow: 0 15px 30px rgba(26, 95, 180, 0.15);
}

/* Iconos de check para las características */
.feature i {
    font-size: 2.5rem;
    color: #1a5fb4;
    margin-bottom: 20px;
    background: rgba(26, 95, 180, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

.feature h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #fff;
}

.feature p {
    color: #b0b0b0;
    font-size: 0.95rem;
}

/* Nuevos íconos para features - usando check marks */
.feature .fa-check-circle, 
.feature .fa-shield-alt,
.feature .fa-bolt,
.feature .fa-user-tie {
    font-size: 2.5rem;
    color: #1a5fb4;
    margin-bottom: 20px;
    background: rgba(26, 95, 180, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

/* Footer - ACTUALIZADO CON LOGO Y NÚMEROS DE CONTACTO */
.footer {
    background-color: #060910;
    padding: 60px 0 30px;
    border-top: 1px solid #1a5fb4;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-info, .footer-contact {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

/* Footer logo styles */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

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

.footer-info h3 {
    margin: 0;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info h3 span {
    color: #1a5fb4;
}

.footer-info p {
    color: #b0b0b0;
    max-width: 300px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.social-links {
    margin-top: 25px;
}

.social-links a {
    display: inline-block;
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    text-align: center;
    margin-right: 10px;
    transition: background 0.3s, transform 0.3s;
}

.social-links a:hover {
    background: #1a5fb4;
    transform: translateY(-5px);
}

.footer-contact h4 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #fff;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #b0b0b0;
}

.footer-contact i {
    color: #1a5fb4;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-contact a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #1a5fb4;
}

/* Estilos para los números de contacto */
.contact-number {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 0;
}

.contact-number .number-info {
    display: flex;
    flex-direction: column;
}

.contact-number .whatsapp-link {
    display: inline-block;
    margin-top: 3px;
    font-size: 0.9rem;
    color: #25D366;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-number .whatsapp-link:hover {
    color: #1a5fb4;
    text-decoration: underline;
}

.contact-number .whatsapp-link i {
    color: #25D366;
    margin-right: 5px;
}

.contact-actions {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.contact-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(26, 95, 180, 0.1);
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.contact-action.whatsapp {
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.contact-action.llamada {
    color: #1a5fb4;
    border: 1px solid rgba(26, 95, 180, 0.3);
}

.contact-action:hover {
    background: rgba(26, 95, 180, 0.2);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #777;
    font-size: 0.9rem;
}

/* Efectos de animación suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .feature {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }

/* Responsive Design */

/* Tablet (1024px - 769px) */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services-row-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .services-row-bottom {
        flex-direction: column;
        align-items: center;
        max-width: 600px;
    }
    
    .services-row-bottom .service-card {
        max-width: 100%;
        width: 100%;
    }
    
    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Logo responsive */
    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    /* Footer responsive */
    .footer-info, .footer-contact {
        min-width: 280px;
    }
}

/* Tablet Pequeña (768px - 601px) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Servicios en una columna para tablet pequeña */
    .services-row-top {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .services-row-bottom {
        max-width: 500px;
    }
    
    .service-card {
        min-height: auto;
    }
    
    .service-list li {
        font-size: 0.9rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .btn-llamar {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Logo responsive */
    .logo-img {
        height: 38px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .footer-logo-img {
        height: 35px;
    }
    
    .footer-info h3 {
        font-size: 1.8rem;
    }
    
    /* Contacto responsive */
    .contact-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-action {
        justify-content: center;
        padding: 8px 12px;
    }
}

/* Móvil (600px - 481px) */
@media (max-width: 600px) {
    .services-row-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-row-bottom {
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        min-height: 50px;
    }
    
    .service-icon span {
        font-size: 2.5rem;
    }
    
    .feature {
        padding: 25px 15px;
    }
    
    .feature i {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 2rem;
    }
    
    /* Logo responsive */
    .logo-img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    /* Footer responsive */
    .footer-contact h4 {
        font-size: 1.2rem;
    }
}

/* Móvil Pequeño (480px o menos) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        min-height: 45px;
    }
    
    .service-list li {
        font-size: 0.85rem;
        padding-left: 20px;
    }
    
    .btn-hero {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 20px;
    }
    
    .features-list {
        gap: 20px;
    }
    
    .feature h3 {
        font-size: 1.2rem;
    }
    
    .feature p {
        font-size: 0.9rem;
    }
    
    /* Logo responsive - Opcional: solo mostrar logo en móvil muy pequeño */
    .logo-text {
        display: none;
    }
    
    .logo-img {
        height: 40px; /* Un poco más grande si solo mostramos el logo */
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-logo-img {
        height: 45px;
    }
    
    /* Contacto responsive */
    .contact-number {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-actions {
        width: 100%;
        margin-top: 10px;
    }
}

/* Pantallas Muy Grandes (más de 1400px) */
@media (min-width: 1400px) {
    .services-row-bottom .service-card {
        max-width: 450px;
    }
    
    .container {
        max-width: 1300px;
    }
    
    .features-list {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-info, .footer-contact {
        min-width: 350px;
    }
}

/* Efecto de brillo para elementos tecnológicos */
.service-card:hover .service-icon span {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Efecto especial para los checks */
.feature:hover .fa-check-circle,
.feature:hover .fa-shield-alt,
.feature:hover .fa-bolt,
.feature:hover .fa-user-tie {
    animation: rotateCheck 0.5s ease-out;
}

@keyframes rotateCheck {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}