/* Reset y configuraci贸n base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
}

/* Navegaci贸n */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

/*.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: #2563eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
}*/

/* Logo - para imagen PNG única */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 68px;           /* Altura fija */
    width: auto;            /* Ancho automático para mantener proporción */
    max-width: 200px;       /* Límite máximo de ancho */
    object-fit: contain;    /* Mantiene las proporciones originales */
    display: block;         /* Elimina espacio extra debajo de la imagen */
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .logo img {
        height: 40px;       /* Un poco más pequeño en móviles */
        max-width: 160px;
    }
}

.nav-links {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    margin-left: 32px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

/* Hero Section */
#inicio {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Degradado azul con 50% de transparencia */
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(29, 78, 216, 0.5) 50%, rgba(37, 99, 235, 0.5) 100%);
    position: relative;
    overflow: hidden;
}

#inicio::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Ahora pon la imagen aquí como background */
    background-image: url('img/slide1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Asegura que esté detrás del degradado */
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 896px;
    margin: 0 auto;
    padding: 0 16px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    color: #fbbf24;
    display: block;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #dbeafe;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #fbbf24;
    color: #1e3a8a;
}

.btn-primary:hover {
    background-color: #f59e0b;
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator div {
    width: 24px;
    height: 40px;
    border: 2px solid white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.scroll-indicator div span {
    width: 4px;
    height: 12px;
    background-color: white;
    border-radius: 2px;
    margin-top: 8px;
    animation: pulse 2s infinite;
}

/* Secciones generales */
.section {
    padding: 80px 20px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: #6b7280;
    max-width: 768px;
    margin: 0 auto 4rem;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.service-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    color: #2563eb;
    margin-bottom: 16px;
    font-size: 32px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
}

.service-description {
    color: #6b7280;
    line-height: 1.6;
}

/* Clientes */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    align-items: center;
    margin-top: 48px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.client-logo img {
    max-height: 64px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.client-logo img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Empresa */
.company-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.company-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1f2937;
}

.company-text p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    color: #10b981;
    font-size: 24px;
    min-width: 24px;
}

.feature-text {
    font-weight: 600;
    color: #4b5563;
}

.company-image {
    position: relative;
}

.company-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.highlight-box {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background-color: #fbbf24;
    color: #1e3a8a;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
}

/* Contacto */
.contact-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: white;
}

.contact-section .section-subtitle {
    color: #dbeafe;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 800px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 250px; /* Ajusta según necesites */
}

.contact-icon {
    background-color: #3b82f6;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.contact-text p {
    color: #dbeafe;
    font-size: 1rem;
}

/* Ocultar el formulario de contacto */
.contact-form {
    display: none;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    background-color: #3b82f6;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.contact-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.contact-text p {
    color: #dbeafe;
    font-size: 1rem;
}

.contact-form {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

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

label {
    display: block;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
    font-size: 14px;
}

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #1d4ed8;
}

/* Footer */
footer {
    background-color: #1f2937;
    color: white;
    text-align: center;
    padding: 32px 20px;
}

/* Animaciones */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(4px);
    }
}

/* Responsive */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .company-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        min-width: 100%;
        max-width: 400px;
    }
}

.protected-email {
    color: #dbeafe;
    text-decoration: none;
    transition: color 0.3s ease;
}

.protected-email:hover {
    color: white;
    text-decoration: underline;
}