@font-face {
    font-family: 'Jumble';
    src: url('Jumble.ttf') format('ttf'),
         url('Jumble.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}

/* Variables para colores */
:root {
    --color-bg-dark: #0a0a0a;
    --color-bg-light: #f5f5f5;
    --color-text-light: #ffffff;
    --color-text-dark: #333333;
    --color-accent: #007bff; /* Un toque de color para el botón flotante */
    --color-transparent-dark: rgba(0, 0, 0, 0.6);
}

/* Estilos Generales */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* imagen */
    background-image: url("fotoUno.jpg");
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat; 
    /*height: 100vh;*/
    background-attachment: fixed;
}

h1, h2, h3 {
    margin: 0;
    font-weight: 300;
}

h2.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--color-text-light);
}

/* Estilo para la línea debajo solo en la sección de Contacto */
#contact .section-title::after {
    background-color: var(--color-text-dark);
}

a {
    text-decoration: none;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

section {
    padding: 80px 5%;
}

/* Encabezado y Navegación */
.header {
    width: 100%;
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.4s ease;
}

.header.scrolled {
    background-color: var(--color-transparent-dark);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.logo h5 {
    font-size: 10px;
    letter-spacing: 2px;
    margin-top: 0;
    text-align: center;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Sección Principal (Hero) */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('https://via.placeholder.com/1920x1080/0a0a0a/FFFFFF?text=Fondo+Hero+Moderno') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
    animation: fadeIn 2s ease-in-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideInUp 1.2s ease-out;
}

.cta-button {
    background-color: var(--color-text-light);
    color: var(--color-bg-dark);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

/* Sección de Estadísticas */
.stats-section {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    text-align: center;
    padding: 50px 5%;
}

.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

.stat-card {
    text-align: center;
    flex: 1 1 200px;
}

.stat-card h2 {
    font-size: 4rem;
    color: var(--color-bg-dark);
    margin-bottom: 5px;
    font-weight: bold;
}

.stat-card p {
    font-size: 1.2rem;
    color: #666;
}

/* Sección de Servicios */
.services-section {
    background-color: var(--color-bg-dark); /* Cambio de color para contraste */
    color: var(--color-text-light);
}

.services-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.service-card {
    background-color: var(--color-text-light);
    color: var(--color-text-dark); /* Color de texto para que se vea en el fondo claro */
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 300px;
    max-width: 350px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--color-bg-dark);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Sección de Portafolio */
/*.portfolio-section {
    background-color: var(--color-bg-dark);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.03);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease-in-out;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-transparent-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    margin-bottom: 5px;
}*/

/* Sección de Contacto */
.contact-section {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: var(--color-text-light);
    color: var(--color-text-dark);
}

.contact-form button {
    cursor: pointer;
    border: none;
}

/* Pie de página */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Estilos de los iconos de redes sociales */
.social-links {
    margin-bottom: 15px;
}

.social-links a {
    color: var(--color-text-light);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--color-accent);
    transform: scale(1.2);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Media Queries (para diseño responsivo) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .nav-links {
        margin-top: 15px;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 30px;
    }

    /* Nuevo: centrar y apilar el h5 debajo del h1 */
    .logo {
        text-align: center;
    }
    .logo h1 {
        display: block; 
        margin: 0 auto;
    }
    .logo h5 {
        display: block;
        margin: 0 auto 10px auto;
        text-align: center;
        font-size: 10px;
    }

}