
@font-face {
  font-family: 'Cascadia Mono';
  src: url('font/Cascadia_Mono/CascadiaMono-VariableFont_wght.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Lato - Local */
@font-face {
  font-family: 'Lato';
  src: url('font/Lato/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.cascadia-mono {
  font-family: "Cascadia Mono", sans-serif;
  font-optical-sizing: auto;
}


.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.count-particles {
  background: #000022;
  position: absolute;
  top: 48px;
  left: 0;
  width: 80px;
  color: #13E8E9;
  font-size: .8em;
  text-align: left;
  text-indent: 4px;
  line-height: 14px;
  padding-bottom: 2px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
}

.js-count-particles {
  font-size: 1.1em;
}

#stats,
.count-particles {
  -webkit-user-select: none;
  margin-top: 5px;
  margin-left: 5px;
}

#stats {
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}

.count-particles {
  border-radius: 0 0 3px 3px;
}


/* ---- particles.js container ---- */

#particles-js {
  position: fixed;
  /* O absolute, para que flote detrás de todo */
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  /* Crucial: lo envía al fondo, detrás de la card */
  background-color: #0b1129;
  /* El color de fondo que elegimos */
}

/* Asegúrate de que el body no tenga scroll innecesario */
body {
  margin: 0;
  padding: 0;
  
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.hero-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  background-color: #1a2c4ea4;
  /* Azul profundo pero más suave para armonía */
  color: #ecf0f1;
  /* Texto claro */
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  /* Sombra elegante */
  text-align: center;
  width: 90%;
  /* Responsivo en móviles */
  max-width: 550px;
  /* Ancho máximo en escritorio */
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Borde sutil */
}

/* Contenedor del Avatar */
.avatar-container {
  width: 120px;
  height: 120px;
  background-color: white;
  border-radius: 50%;
  margin: -80px auto 20px auto;
  /* Elevado sobre el borde */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 4px solid #1a2c4e;
  /* Borde con el color del card */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.avatar-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* Títulos y Texto */
h1 {
  color: #3498db;
  /* Azul vibrante para el hashtag */
  font-size: 2.5em;
  margin: 0 0 10px 0;
  font-weight: 700;
}

h2 {
  font-size: 1.5em;
  margin: 0 0 15px 0;
  font-weight: 400;
  color: #bdc3c7;
}

p {
  font-size: 1.1em;
  line-height: 1.6;
  margin: 0 0 25px 0;
  color: #ecf0f1;
}

/* Contenedor de Tags */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.tag {
  background-color: #34495e;
  /* Color neutro para tags */
  color: #c1e6ff;
  /* Texto con el color de acento */
  padding: 4px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

/* Contenedor de Botones (CTA) */
.cta-container {
  display: flex;
}

.social {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

/* Estilo base de botones "fantasma" unificados */
.btn {
  padding: 5px 20px;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid;
  box-sizing: border-box;
}

/* Colores específicos de los botones (Outline) */
.btn-cotizar {
  border-color: #f1c40f;
  /* Oro para la acción principal */
  color: #f1c40f;
}

.btn-explorar {
  border-color: #EDEDED;
  /* Oro para la acción principal */
  color: #EDEDED;
}


.btn-explorar:hover {
  background-color: #EDEDED;
  color: #1a2c4e;
}

.btn-cotizar:hover {
  background-color: #f1c40f;
  color: #1a2c4e;
}

.btn-linkedin {
  border-color: #3498db;
  /* Cian para redes */
  color: #3498db;
}

.btn-linkedin:hover {
  background-color: #3498db;
  color: #ffffff;
}

.btn-whatsapp {
  border-color: #2ecc71;
  /* Verde esmeralda para WA */
  color: #2ecc71;
}

.btn-whatsapp:hover {
  background-color: #2ecc71;
  color: #ffffff;
}

/* Media Query para pantallas más grandes (Escritorio) */
@media (min-width: 600px) {
  .cta-container {
    flex-direction: row;
    /* En fila para escritorio */
    justify-content: space-between;
  }

  .btn {
    width: calc(33.33% - 10px);
    /* Dividir el ancho */
  }
}



/* Botón animado */

/* From Uiverse.io by adeladel522 */

.button_animated {
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  padding-block: 0.5rem;
  padding-inline: 1.25rem;
  background-color: #3498db;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0b1129;
  gap: 10px;
  font-weight: bold;
  border: 1px solid #0b1129;
  outline: none;
  overflow: hidden;
  font-size: 17px;
}

.icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease-in-out;
}

.button_animated:hover {
  transform: scale(1.05);
  border-color: #fff9;
}

.button_animated:hover .icon {
  transform: translate(4px);
}

.button_animated:hover::before {
  animation: shine 1.5s ease-out infinite;
}

.button_animated::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  background-image: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0) 70%);
  top: 0;
  left: -100px;
  opacity: 0.6;
}

@keyframes shine {
  0% {
    left: -100px;
  }

  60% {
    left: 100%;
  }

  to {
    left: 100%;
  }
}



/* SOCIAL */


/* =========================================
           ESTILOS DEL MODAL (Lo que pediste)
           ========================================= */

/* 1. Fondo Oscuro Detrás del Modal (Overlay) */
.modal {
  display: none;
  /* OCULTO POR DEFECTO */
  position: fixed;
  /* Fijo en la pantalla */
  z-index: 1000;
  /* Por encima de todo */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  /* Permite scroll si el modal es muy alto */

  /* FONDO OSCURO CON 70% DE TRANSPARENCIA */
  background-color: rgba(0, 0, 0, 0.7);
}

/* 2. Contenedor Blanco del Modal */
.modal-content {
  background-color: #ffffff;
  /* FONDO BLANCO */
  margin: 5% auto;
  /* Centrado arriba/abajo y a los lados */
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  /* Sombra elegante */
  width: 85%;
  /* Ancho en pantallas grandes */
  max-width: 1000px;
  /* Ancho máximo */
  position: relative;

  /* GRID PARA EL DISEÑO DE DOS COLUMNAS */
  display: grid;
  grid-template-columns: 45% 55%;
  overflow: hidden;
  /* Mantiene las esquinas redondeadas */
}

/* --- El Botón 'X' para Cerrar --- */
.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #aaaaaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close-button:hover {
  color: #333;
}

/* =========================================
           DISEÑO INTERNO DEL MODAL (Del prompt anterior)
           ========================================= */

/* Columna 1: El Collage (Mantiene su forma) */
.collage-column {
  background-color: #eaeaea;
  /* Fondo gris claro */
  padding: 30px 20px;
}

.collage-column img {
  width: 100%;
  border-radius: 6px;
}



/* Columna 2: El Formulario */
.form-column {
  padding: 50px;
}

.form-column h2 {
  margin-top: 0;
  color: #333;
  font-size: 28px;
}

.form-column p.subtitle {
  color: #666;
  margin-bottom: 15px;
}

/* Estilos de los campos del formulario */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #1E3A5F;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
  /* Importante para el padding */
}

.form-group textarea {
  height: 100px;
  resize: vertical;
  /* Solo permite estirar verticalmente */
}

/* Estilo del Botón de Enviar */
.submit-btn {
  background-color: #3498DB;
  /* Un gris muy oscuro casi negro */
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  width: 100%;
  /* Botón de ancho completo */
  transition: background-color 0.3s ease;
}

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

/* Estilos del Mensaje de Gracias (Oculto al inicio) */
#thanks-message {
  display: none;
  text-align: center;
  padding: 40px;
  background-color: #e6fffa;
  /* Verde muy claro */
  border: 1px solid #b2f5ea;
  border-radius: 8px;
  color: #2c7a7b;
}

#thanks-message h3 {
  margin-top: 0;
}

#thanks-message .icon {
  font-size: 48px;
  margin-bottom: 15px;
}

/* =========================================
           ADAPTABILIDAD MÓVIL (Rwd)
           ========================================= */
@media only screen and (max-width: 800px) {
  .modal-content {
    grid-template-columns: 1fr;
    /* Una sola columna en móvil */
    width: 95%;
    /* Más ancho en móvil */
    margin: 10% auto;
  }

  .collage-column {
    display: none;
    /* DESAPARECE EL COLLAGE EN MÓVIL */
  }

  .form-inline {
    display: block !important;
  }

  .form-column {
    padding: 30px;
    /* Menos padding en móvil */
  }
}


.title-collage {
  display: block;
  width: 100%;
}

.title-collage h2 {
  color: #0c0c41;
}

.color-blue {
 color: #0c0c41;
}

.form-inline {
  display: flex;
  justify-content: space-between;
}


.subtitle {
   font-size: 1.3em;
  margin: 0 0 15px 0;
  font-weight: 400;
  color: #bdc3c7;
}





/* Proyectos */ 

:root {
            --footer-bg: #000022;
            --accent-red: #1e96fc; /* Color para el nombre de la marca */
            --text-gray: #666666;
            --icon-bg: #000022;
            --line-color: rgba(255, 255, 255, 0.1);
            --bg-color: #000022;
            --card-dark: #00274C;
            --accent-green: #1e96fc; /* Verde neón similar a la imagen */
            --text-gray: #a0a0a0;
            --text-white: #ffffff;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-white);
            font-family: 'Inter', sans-serif;
            margin: 0;
            padding: 40px 20px;
        }

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

        /* Header Section */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 50px;
        }

        .header-title h2 {
            font-size: 3rem;
            margin: 0;
            letter-spacing: -1px;
        }

        .header-title span {
            color: var(--accent-green);
        }

        .btn-cv {
            background-color: var(--accent-green);
            color: black;
            padding: 12px 25px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: transform 0.2s;
        }

        .btn-cv:hover {
            transform: scale(1.05);
        }

        /* Grid de Proyectos */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }

        /* Estilo de la Card */
        .project-card {
            background-color: var(--card-dark);
            padding: 40px 30px;
            border-radius: 20px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        /* Alternancia de colores como en la imagen */
        .project-card.highlight {
            background-color: var(--accent-green);
            color: black;
        }

        .icon-wrapper {
            width: 60px;
            height: 60px;
            background-color: rgba(255,255,255,0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
            font-size: 1.5rem;
        }

        .highlight .icon-wrapper {
            background-color: rgba(0,0,0,0.1);
        }

        .project-card h3 {
            font-size: 1.5rem;
            margin: 0 0 15px 0;
        }

        .project-card p {
            color: var(--text-gray);
            line-height: 1.6;
            margin: 0;
        }

        .highlight p {
            color: rgba(0,0,0,0.7);
        }

        /* Animación Hover */
        .project-card:hover {
            transform: translateY(-10px);
        }

        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                align-items: flex-start;
                gap: 20px;
            }
            .header-title h2 {
                font-size: 2rem;
            }
        }



        /* --- ESTILOS GLOBALES (Mantenidos) --- */
        :root {
            --text-white: #ffffff;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-white);
            font-family: 'Inter', sans-serif;
            margin: 0;
            padding: 0;
            overflow-x: hidden; /* Evita scroll horizontal indeseado */
        }

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

        /* --- ESTILOS DEL HEADER (Mantenidos) --- */
        .header-title {
            margin-bottom: 50px;
            text-align: left; /* Alineación a la izquierda como el ejemplo original */
        }

        .header-title p {
            color: var(--accent-green);
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 0.9rem;
        }

        .header-title h2 {
            font-size: 3rem;
            margin: 0;
            letter-spacing: -1px;
            font-weight: 700;
        }

        .header-title span {
            color: var(--accent-green);
        }

        /* --- ESTILOS DEL CARRUSEL (NUEVO) --- */
        .carousel-section {
            position: relative;
            width: 100%;
        }

        .carousel-viewport {
            overflow: hidden;
            width: 100%;
            cursor: grab; /* Indica que se puede arrastrar */
        }

        .carousel-viewport:active {
            cursor: grabbing; /* Indica que se está arrastrando */
        }

        .carousel-container {
            display: flex;
            transition: transform 0.3s ease-out; /* Suavidad al soltar */
            will-change: transform;
        }

        .carousel-item {
            flex: 0 0 calc(33.333% - 20px); /* 3 imágenes por vista en escritorio */
            margin-right: 20px;
            border-radius: 15px;
            overflow: hidden;
            background-color: #1a1a1a;
            user-select: none; /* Evita seleccionar la imagen al arrastrar */
        }

        .carousel-item img {
            width: 100%;
            height: 300px; /* Altura fija para consistencia */
            object-fit: cover; /* Ajusta la imagen sin deformar */
            display: block;
            pointer-events: none; /* Importante para el arrastre en escritorio */
        }

        /* --- PUNTOS DE NAVEGACIÓN (NUEVO) --- */
        .carousel-pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 30px;
        }

        .pagination-dot {
            width: 10px;
            height: 10px;
            background-color: #333;
            border-radius: 50%;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .pagination-dot.active {
            background-color: var(--accent-green);
        }

        /* --- MEDIA QUERIES (Responsivo) --- */
        
        /* Tablets y Escritorios Pequeños */
        @media (max-width: 1024px) {
            .carousel-item {
                flex: 0 0 calc(50% - 20px); /* 2 imágenes por vista */
            }
        }

        /* Móvil (Estilo Instagram) */
        @media (max-width: 768px) {
            .header-title h2 {
                font-size: 2rem;
            }

            .carousel-viewport {
                overflow-x: auto; /* Permite swipe nativo en móvil */
                scroll-snap-type: x mandatory; /* Efecto iman de Instagram */
                -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
            }

            /* Ocultar barra de scroll nativa */
            .carousel-viewport::-webkit-scrollbar {
                display: none;
            }

            .carousel-container {
                transition: none; /* Desactivar transición JS para swipe nativo */
            }

            .carousel-item {
                flex: 0 0 100%; /* 1 imagen por vista completa */
                margin-right: 0;
                scroll-snap-align: start; /* Puntos de anclaje */
                border-radius: 10px;
            }

            .carousel-item img {
                height: 350px; /* Un poco más alta en móvil */
            }

            /* Puntos flotando sobre la imagen (opcional, estilo Insta) */
            /*.carousel-pagination {
                position: absolute;
                bottom: 20px;
                left: 50%;
                transform: translateX(-50%);
                margin-top: 0;
            }*/
        }




        

        body {
            margin: 0;
            background-color: #000;
        }

        .site-footer {
            background-color: var(--footer-bg);
            position: relative;
            padding: 60px 0 30px 0;
            font-family: 'Inter', sans-serif;
            color: var(--text-gray);
            border-top: 1px solid rgba(255,255,255,0.05);
        }

        /* --- EFECTO DE REGLA / LÍNEAS TÉCNICAS --- */
        .footer-ruler {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 40px;
            /* Crea las líneas verticales repetitivas */
            background-image: repeating-linear-gradient(
                90deg,
                var(--line-color) 0px,
                var(--line-color) 1px,
                transparent 1px,
                transparent 10px
            );
            /* Máscara para que se desvanezca hacia abajo */
            -webkit-mask-image: linear-gradient(to bottom, black, transparent);
            mask-image: linear-gradient(to bottom, black, transparent);
            opacity: 0.5;
        }

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

        .copyright {
            font-size: 0.85rem;
            letter-spacing: 0.5px;
        }

        .copyright span {
            color: var(--accent-red);
            font-weight: bold;
        }

        /* --- REDES SOCIALES --- */
        .social-container {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .social-label {
            font-size: 0.85rem;
            margin-right: 5px;
        }

        .social-links {
            display: flex;
            gap: 10px;
        }

        .social-icon {
            width: 35px;
            height: 35px;
            background-color: var(--icon-bg);
            color: var(--text-gray);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .social-icon:hover {
            border-color: var(--text-gray);
            color: white;
            transform: translateY(-3px);
        }

        /* --- RESPONSIVO --- */
        @media (max-width: 600px) {
            .footer-content {
                flex-direction: column;
                gap: 25px;
                text-align: center;
            }
        }


        /* --- FAQ Accordion Styles --- */
.faq-accordion {
    width: 100%;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.faq-question {
    width: 100%;
    padding: 25px 15px;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #EDEDED;
    font-size: 1.1rem;
    text-align: left;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(var(--accent-green-rgb), 0.05); /* Ajusta si tienes variable RGB */
    color: var(--accent-green);
}

.faq-question i.arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 0 15px 25px 15px;
    color: #B0B0B0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Estado Activo */
.faq-item.active .faq-answer {
    max-height: 300px; /* Suficiente para el contenido */
}

.faq-item.active .arrow {
    transform: rotate(180deg);
    color: var(--accent-green);
}

.faq-item.active .faq-question {
    color: var(--accent-green);
}

/* Ajustes para Móvil */
@media (max-width: 768px) {
    .faq-question {
        font-size: 1rem;
        padding: 20px 10px;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
        padding: 0 10px 20px 10px;
    }
}


#thanks-message {
    display: none; /* Se activa por JS */
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(var(--accent-green-rgb), 0.3); /* Usa tu color verde */
    border-radius: 15px;
    animation: fadeIn 0.5s ease-out;
}

#thanks-message .icon {
    font-size: 50px;
    color: var(--accent-green);
    margin-bottom: 20px;
}

#thanks-message h3 {
    font-family: 'Cascadia Mono', monospace;
    color: var(--accent-green);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

#thanks-message p {
    color: #B0B0B0;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto 10px auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}