@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html {
  scroll-behavior: smooth;
}


/* Estilos Generales para el Body */
html, body {
    background-color: #ffffff; /* Define o fundo branco para o corpo */
  background-image: none; /* Remove qualquer imagem de fundo */
    overflow-x: hidden; /* Oculta cualquier desbordamiento horizontal */
    width: 100%; /* Asegura que no haya un ancho "extra" del body */
}


body {
    background-color: #ffffff; /* Define o fundo branco para o corpo */
  background-image: none; /* Remove qualquer imagem de fundo */
  font-family: 'Montserrat', 'Arial', sans-serif;
  margin: 0;
  background-image: url('imagenes/portada.png');
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #333;
  transition: background 0.3s ease, color 0.3s ease;
}




/* --- ESTILOS DEL HEADER (Versión de ESCRITORIO por defecto) --- */
header {
    height: 70px; /* Aumentamos la altura para un mejor centrado vertical */
    background-color: #ffffff; /* ¡FONDO BLANCO POR DEFECTO! */
    color: #000000; /* ¡TEXTO NEGRO POR DEFECTO! */
    padding: 0 40px; /* Ajustamos el padding lateral para una mejor alineación */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* ¡El header SIEMPRE fijo! */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000; /* Asegura que esté por encima de todo */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Sombra inicial discreta */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Agregamos transición para el scroll effect */
    box-sizing: border-box; /* Para que el padding no afecte el ancho total */
}

header.scrolled {
  background: linear-gradient(to right, rgba(240, 240, 240, 0.95), rgba(255, 255, 255, 0.9));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* --- Estilos del Logo --- */
.site-logo {
    height: 120px; /* Ajustada para el header de 70px */
    width: auto;
    max-width: 150px;
    display: block;
}

/* --- Estilos del Menú Hamburguesa (Desktop - oculto por defecto) --- */
.hamburger-menu {
    display: none; /* Oculto por defecto en escritorio */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000000; /* Barras negras SIEMPRE */
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* NO necesitamos una regla .scrolled para .hamburger-menu .bar porque el color no cambia */


/* --- Estilos del Menú de Navegación (Desktop) --- */
.nav-menu {
    display: flex; /* Visible por defecto en escritorio */
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.nav-menu ul li {
    margin: 0 15px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #000000; /* ¡ENLACES NEGROS SIEMPRE! */
    
    padding: 5px 0;
    transition: color 0.3s ease-in-out;
    position: relative;
    font-size: 1.1em;
}

/* Efecto al pasar el ratón (Hover) */
.nav-menu ul li a:hover {
    color: #a0a0a0; /* Gris claro al hacer hover */
}

/* Subrayado animado al pasar el ratón */
.nav-menu ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #000000; /* Subrayado negro SIEMPRE */
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

/* NO necesitamos una regla .scrolled para .nav-menu ul li a::after porque el color no cambia */

.nav-menu ul li a:hover::after {
    width: 100%;
}

.nav-menu .boton-contacto {
    text-decoration: none;
  background: rgba(0, 0, 0, 0.7); /* Fundo preto semitransparente */
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-menu .boton-contacto:hover {
    
  background: rgba(255, 255, 255, 0.9);
  color: #000 !important;
  border-color: #000;
}

/* Remove la línea inferior del botón de contacto */
.nav-menu .boton-contacto::after {
  display: none !important;
}




/* --- Estilos para la PRIMERA PANTALLA (solo imagen) --- */
.hero-primera-pantalla {
    width: 100vw;
    height: 100vh; /* Ocupa exactamente toda la altura de la ventana */
    /* No necesita background-image aquí, ya que está en el body */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Si añades texto en esta sección y quieres que sea blanco */
    color: white;
    text-align: center;
    position: relative;
    /* background-color: rgba(0,0,0,0.3); /* Capa oscura semitransparente si quieres un texto más legible */
}



/* --- SECCIÓN DE PORTADA CON CONTENIDO Y FONDO BLANCO --- */
.portada-seccion-blanca {
    width: 100vw; /* 100% del ancho de la ventana */
    min-height: 100vh; /* Mínimo 100% de la altura, se expandirá con el contenido */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white; /* ¡Fondo blanco solicitado! */
    padding: 50px 20px; /* Padding para el contenido dentro de la sección */
    box-sizing: border-box;
    z-index: 1; /* Asegura que esté por encima del background fixed del body */
    position: relative; /* Necesario para que el z-index funcione correctamente */
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1); /* Una pequeña sombra arriba para dar efecto de "salir" */
    margin-top: 0; /* Asegura que no haya margen superior por defecto */
}

.portada-contenido {
    max-width: 700px;
    padding: 30px;
    color: #333;
    text-align: center;
}

.portada-tagline {
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 8px 15px;
    border-radius: 20px;
    color: #333;
}

.portada-tagline .icon-bulb {
    margin-right: 8px;
    font-size: 1.2em;
}

.portada-contenido h2 {
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #000;
}

.portada-description {
    font-size: 1.1em;
    line-height: 1.6;
    opacity: 0.9;
    color: #555;
}

/* --- Estilos para secciones principales (solo de ejemplo) --- */
main {
    padding: 2rem;
    max-width: 960px;
    margin: 2rem auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


/* --- Media Query para dispositivos móviles --- */
@media (max-width: 768px) {
    /* Estilos del HEADER en MÓVIL */
    header {
        height: 60px; /* Ajustamos la altura para móvil */
        background-color: #ffffff; /* Fondo blanco para el header en móvil SIEMPRE */
        color: #000000; /* Texto negro para el header en móvil SIEMPRE */
        padding: 0 20px; /* Ajustamos el padding para móviles */
        justify-content: space-between;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    /* Reducir tamaño del logo en móvil */
    .site-logo {
        height: 120px; /* Ajuste a un tamaño más pequeño y coherente para móvil */
        max-width: 150px;
    }

    /* Mostrar el botón de hamburguesa en móvil */
    .hamburger-menu {
        display: block;
    }

    .hamburger-menu .bar {
        background-color: #000000; /* Barras negras para el icono hamburguesa en móvil */
    }

    /* Ocultar el menú de navegación por defecto en móvil */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff; /* ¡FONDO BLANCO PARA EL MENÚ DESPLEGABLE EN MÓVIL! */
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 1000;
        overflow: hidden;
        transition: height 0.3s ease-in-out;
        height: 0;
    }

    /* Mostrar el menú cuando tenga la clase 'active' */
    .nav-menu.active {
        display: flex;
        height: auto;
        max-height: 300px;
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-menu ul li:last-child {
        border-bottom: none;
    }

    .nav-menu ul li a {
        color: #000000; /* ¡LETRAS NEGRAS PARA LOS ENLACES DEL MENÚ MÓVIL! */
        padding: 15px 20px;
        display: block;
        font-size: 1.1em;
        text-align: left;
        font-weight: normal;
    }

    /* Efecto al pasar el ratón en móvil (si se soporta, ej: tablets) */
    .nav-menu ul li a:hover {
        background-color: #f0f0f0;
        color: #000000; /* ¡LETRAS NEGRAS AL PASAR EL RATÓN! */
    }

    /* Ocultar el subrayado animado en móvil */
    .nav-menu ul li a::after {
        display: none;
    }

    /* Animación del icono de hamburguesa a cruz */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    .boton-contacto {
  background-color: #000;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: bold;
  transition: background 0.3s ease-in-out;
}

.boton-contacto:hover {
  background-color: #333;
}


    /* Adaptaciones para las secciones de portada en móvil */
    .hero-primera-pantalla {
        height: 80vh;
    }

    .portada-seccion-blanca {
        min-height: 85vh;
        padding: 40px 20px;
    }

    .portada-contenido {
        padding: 15px;
    }

    .portada-tagline {
        font-size: 0.75em;
        padding: 5px 10px;
    }

    .portada-contenido h2 {
        font-size: 1.6em;
        margin-bottom: 10px;
    }

    .portada-description {
        font-size: 0.85em;
    }

    /* IMAGEN DE FONDO PARA MÓVIL (DEBE SER LA ÚLTIMA REGLA DEL BODY DENTRO DE LA MEDIA QUERY) */
    body {
        background-image: url('imagenes/portada-mobile.jpg'); /* IMAGEN MÁS PEQUEÑA PARA MÓVIL */
        background-position: center;
    }
}




a {
    text-decoration: none;
}

/* =================================================================
   PORTAFOLIO DE PROYECTOS - CSS COMPLETO
   ================================================================= */

/* --- 1. Estilos de la Sección General --- */

.work-showcase-section {
  padding: 80px 20px; /* Más espaciado vertical */
  text-align: center;
  background-color: #f8f9fa; /* Un gris muy claro y neutro */
  font-family: 'system-ui', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  overflow-x: hidden; /* Previene scroll horizontal indeseado */
}

.work-showcase-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #212529;
}

.work-showcase-description {
  max-width: 700px;
  margin: 0 auto 50px auto; /* Mayor margen inferior */
  font-size: 1.1rem;
  color: #6c757d; /* Color de texto secundario */
  line-height: 1.7;
}

/* --- 2. Contenedor de Cards y Estilos de Enlace --- */

.work-showcase-cards {
  display: flex;
  justify-content: center;
  gap: 35px; /* Un poco más de espacio entre cards */
  flex-wrap: wrap;
}

/* Resetea el estilo del enlace que envuelve al card */
.work-showcase-section a {
  text-decoration: none;
  color: inherit;
  display: block; /* Asegura que el enlace ocupe todo el espacio del card */
}

/* --- 3. Estilo Principal del Card (Incluye estado inicial para la animación) --- */

.work-showcase-card {
  /* Apariencia y Layout */
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  max-width: 350px;
  overflow: hidden;
  position: relative; /* Clave para posicionar el ícono de flecha */

  /* Estado Inicial para la Animación de Aparición */
  opacity: 0;
  transform: translateY(40px);
  
  /* Transición Maestra: Anima todos los cambios (aparición y hover) */
  transition: all 0.5s ease-out;
}

/* --- 4. Contenido Interno del Card --- */

.work-showcase-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  /* Transición para el efecto de zoom en el hover */
  transition: transform 0.4s ease-in-out;
}

.work-showcase-card-content {
  padding: 25px;
  text-align: left;
}

.work-showcase-card-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #343a40;
}

.work-showcase-card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #6c757d;
}

/* --- 5. Estados y Animaciones (Aparición y Hover) --- */

/* Clase que añade JavaScript para activar la animación de aparición */
.work-showcase-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Efecto Hover: Levantar el card y acentuar la sombra */
.work-showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Efecto Hover: Zoom en la imagen */
.work-showcase-card:hover .work-showcase-card-image {
  transform: scale(1.05);
}

/* --- 6. Ícono de Flecha (Pseudo-elemento ::after) --- */

/* Estilo y posición del ícono */
.work-showcase-card::after {
  content: '→';
  font-family: 'Arial', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  
  position: absolute;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background-color: #007bff; /* Color de acento principal */
  color: #fff;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  /* Estado inicial del ícono (oculto) */
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* El ícono se muestra al hacer hover en el card */
.work-showcase-card:hover::after {
  opacity: 1;
  transform: scale(1);
}


/* --- SECCIÓN DE CARDS EXPANSIVAS --- */
#servicios-cards {
    overflow-x: hidden;
    padding: 80px 20px;
    background-color: #f9f9f9;
    display: flex; /* Mantenemos flex para que el contenido se gestione */
    flex-direction: column; /* ¡CAMBIO CLAVE! Apila los elementos verticalmente */
    justify-content: center; /* Centra el contenido verticalmente si es necesario */
    align-items: center; /* ¡CAMBIO CLAVE! Centra los elementos horizontalmente */
    min-height: 100vh;
    box-sizing: border-box;
}

/* El .card-container también debe estar centrado si #servicios-cards tiene align-items: center; */
.card-container {
    overflow-x: hidden;
    display: flex;
    gap: 15px; /* Reducimos el espacio entre tarjetas para que quepan 5 */
    justify-content: center; /* Centra las tarjetas horizontalmente dentro de su propio contenedor */
    max-width: 1400px; /* Mantener un ancho generoso para 5 cards expandidos */
    margin: 0 auto; /* Asegura que el card-container se centre dentro del align-items de #servicios-cards */
    flex-wrap: wrap; /* Aseguramos que no haya salto de línea en escritorio */
    /* overflow-x: auto; /* Mantén esto si deseas scroll horizontal si no caben perfectamente */
    /* padding-bottom: 10px; */ /* Mantén esto para el scrollbar */
}

/* Estilos para el título de la sección de cards */
.section-header {
    text-align: center;
    margin-bottom: 50px; /* Espacio entre el título y las tarjetas */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-header h2 {
    font-size: 2.8em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 30px;
    }
    .section-header h2 {
        font-size: 2em;
    }
    .section-header p {
        font-size: 0.95em;
    }
}




/*SECCIÓN PRINCIPAL --- */
#mis-trabajos-web {
    padding: 40px 20px;
    background-color: #f8fafc;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- FILA HERO: TÍTULO + CARD DESTACADO --- */
.hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 20px;
}

.hero-title {
    padding-right: 20px;
}

.subtitle {
    display: block;
    font-size: 0.8em;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.hero-title h1 {
    font-size: 3.2em;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.1;
    margin: 0;
}

.featured-card {
    max-width: 400px;
    justify-self: end;
}

/* --- GRID ASIMÉTRICO SEGUNDA FILA --- */
.asymmetric-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.large-card {
    /* Card grande que ocupa más espacio */
}

.small-cards-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.small-card {
    /* Cards pequeños en columna */
}

/* --- FILA INFERIOR --- */
.bottom-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.bottom-large {
    /* Card mediano */
}

.bottom-small {
    /* Card pequeño */
}

/* --- ESTILOS BASE DE CARDS --- */
.trabajo-card-wrapper {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.trabajo-card-wrapper:hover {
    transform: translateY(-8px) rotateX(3deg);
}

/* Efecto de capas apiladas detrás */
.trabajo-card-wrapper::before,
.trabajo-card-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    z-index: -1;
}

.trabajo-card-wrapper::before {
    transform: translateX(6px) translateY(6px) rotateZ(-1.5deg);
    background: linear-gradient(135deg, rgba(240,240,240,0.9), rgba(220,220,220,0.8));
}

.trabajo-card-wrapper::after {
    transform: translateX(12px) translateY(12px) rotateZ(-3deg);
    background: linear-gradient(135deg, rgba(200,200,200,0.8), rgba(180,180,180,0.7));
}

.trabajo-card-wrapper:hover::before {
    transform: translateX(3px) translateY(3px) rotateZ(-0.8deg);
}

.trabajo-card-wrapper:hover::after {
    transform: translateX(6px) translateY(6px) rotateZ(-1.5deg);
}

/* Card principal */
.trabajo-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.8);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Área de imagen con gradientes vibrantes */
.trabajo-imagen-background {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Diferentes alturas para diferentes tipos de cards */
.featured-card .trabajo-imagen-background,
.large-card .trabajo-imagen-background {
    height: 180px;
}

.small-card .trabajo-imagen-background {
    height: 120px;
}

.bottom-large .trabajo-imagen-background {
    height: 150px;
}

.bottom-small .trabajo-imagen-background {
    height: 140px;
}

.trabajo-imagen-background::before {
}

.trabajo-imagen-background img {
    
    height: 100%;
    width: 100%;
    object-fit: cover;
    
}

/* Colores vibrantes para fondos */
.bg-color-light-blue { 
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}
.bg-color-light-pink { 
    background: linear-gradient(135deg, #fce7f3 0%, #f3e8ff 100%);
}
.bg-color-light-purple { 
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
}
.bg-color-light-orange { 
    background: linear-gradient(135deg, #fed7aa 0%, #fef3c7 100%);
}
.bg-color-light-green { 
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
}

/* Contenido del card */
.trabajo-contenido {
    padding: 25px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trabajo-contenido h3 {
    font-size: 1.3em;
    color: #1a202c;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.trabajo-contenido p {
    font-size: 0.9em;
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Tamaños específicos para diferentes cards */
.featured-card .trabajo-contenido h3,
.large-card .trabajo-contenido h3 {
    font-size: 1.4em;
}

.small-card .trabajo-contenido h3 {
    font-size: 1.1em;
}

.small-card .trabajo-contenido p {
    font-size: 0.85em;
}

/* Botón con estilo moderno */
.btn-ver-mas {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #6366f1;
    padding: 8px 0;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85em;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    align-self: flex-start;
}

.btn-ver-mas:hover {
    background-color: #6366f1;
    color: white;
    transform: translateY(-1px);
}

.btn-ver-mas::after {
    content: '→';
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.btn-ver-mas:hover::after {
    transform: translateX(2px);
}

/* Rotaciones sutiles para dinamismo */
.trabajo-card-wrapper:nth-child(odd) {
    transform: rotateZ(0.5deg);
}

.trabajo-card-wrapper:nth-child(even) {
    transform: rotateZ(-0.5deg);
}

.trabajo-card-wrapper:hover:nth-child(odd) {
    transform: translateY(-8px) rotateZ(1deg) rotateX(3deg);
}

.trabajo-card-wrapper:hover:nth-child(even) {
    transform: translateY(-8px) rotateZ(-1deg) rotateX(3deg);
}

/* --- RESPONSIVE PARA MÓVIL --- */
@media (max-width: 768px) {
    #mis-trabajos-web {
        padding: 20px 15px;
        gap: 25px;
    }

    /* Hero row en móvil: stack vertical */
    .hero-row {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .hero-title {
        padding-right: 0;
    }

    .hero-title h1 {
        font-size: 2.2em;
    }

    .featured-card {
        max-width: 100%;
        justify-self: center;
    }

    /* Grid asimétrico se convierte en stack */
    .asymmetric-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .small-cards-column {
        gap: 15px;
    }

    /* Fila inferior stack */
    .bottom-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Ajustar alturas en móvil */
    .trabajo-imagen-background {
        height: 140px !important;
    }

    .small-card .trabajo-imagen-background {
        height: 120px !important;
    }

    .trabajo-contenido {
        padding: 20px;
    }

    /* Efectos más sutiles en móvil */
    .trabajo-card-wrapper::before {
        transform: translateX(4px) translateY(4px) rotateZ(-2deg);
    }

    .trabajo-card-wrapper::after {
        transform: translateX(8px) translateY(8px) rotateZ(-4deg);
    }

    .trabajo-card-wrapper:hover {
        transform: translateY(-5px) rotateX(2deg);
    }

    /* Animación de entrada escalonada */
    .hero-row { animation: slideInUp 0.8s ease 0.1s both; }
    .asymmetric-grid { animation: slideInUp 0.8s ease 0.3s both; }
    .bottom-row { animation: slideInUp 0.8s ease 0.5s both; }
}

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

/* Animaciones para desktop */
@media (min-width: 769px) {
    .hero-row { animation: fadeInScale 1s ease 0.1s both; }
    .asymmetric-grid { animation: fadeInScale 1s ease 0.3s both; }
    .bottom-row { animation: fadeInScale 1s ease 0.5s both; }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Oculta carrossel no desktop */
  #mis-trabajos-web-swiper {
    display: none;
  }

  @media (max-width: 768px) {
    #mis-trabajos-web-grid {
      display: none;
    }
    #mis-trabajos-web-swiper {
      display: block;
    }
  }  





#service-carousel {
  padding: 40px 20px;
  background: #111;
  color: #fff;
  font-family: 'Montserrat', 'Arial', sans-serif;
  text-align: center;
  overflow: hidden;
}

.section-header h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 16px;
  color: #ccc;
}

.carousel-row {
  overflow: hidden;
  height: 300px;
  margin-bottom: 30px;
  position: relative;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: slideBackForth 30s linear infinite alternate;
}

.carousel-row.reverse .carousel-track {
  animation-direction: alternate-reverse;
}

.carousel-track img {
  width: 400px;
  height: 300px;
  margin: 0 10px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

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

/* Animação vai e volta */
@keyframes slideBackForth {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* RESPONSIVO para telas pequenas */
@media (max-width: 768px) {
  .carousel-row {
    height: 200px;
  }

  .carousel-track img {
    width: 250px;
    height: 180px;
    margin: 0 6px;
    border-radius: 15px;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .section-header p {
    font-size: 14px;
    padding: 0 10px;
  }
}


.seccion {
    font-family: 'Montserrat', 'Arial', sans-serif;
    background-color: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.faq-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.faq-item {
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
}

.faq-question { 
  width: 100%;
  text-align: left;
  background: #f7f7f7;
  padding: 15px;
  font-size: 1.2rem;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 15px;
  background: #fff;
}

.faq-answer p {
  margin: 10px 0;
  font-size: 1rem;
}

.arrow {
  font-weight: bold;
  font-size: 1.5rem;
}




.footer-modern {
  background: #111;
  color: #eee;
  padding: 60px 20px 30px;
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #fff;
}

.footer-logo p {
  max-width: 300px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-links h4,
.footer-social h4 {
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #fff;
}

.footer-social .social-icons a {
  display: inline-block;
  margin-right: 12px;
  color: #ccc;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.footer-social .social-icons a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  color: #aaa;
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-social .social-icons {
    justify-content: center;
  }
}




   



         .chat-container {
            width: 800px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            position: fixed;
            bottom: 80px;
            right: 20px;
            display: none; /* Inicialmente oculto */
            flex-direction: column;
            z-index: 1000; /* Sobre todos los elementos */
        }
        .header {
            background: #0078D7;
            color: white;
            text-align: center;
            padding: 15px;
        }
        .chat-box {
            height: 300px;
            overflow-y: auto;
            padding: 15px;
            background: #f9f9f9;
        }
        .message {
            margin-bottom: 15px;
        }
        .bot {
            color: white;
            background: #0078D7;
            border-radius: 5px;
            padding: 10px;
            display: inline-block;
        }
        .user {
            color: black;
            background: #e4e4e4;
            border-radius: 5px;
            padding: 10px;
            display: inline-block;
            align-self: flex-end;
        }
        .options {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 10px;
        }
        .options button {
            background: #e4e4e4;
            border: none;
            padding: 10px;
            border-radius: 5px;
            cursor: pointer;
            text-align: left;
        }
        .input-container {
            display: flex;
            border-top: 1px solid #ddd;
        }
        .input-container input {
            flex: 1;
            border: none;
            padding: 10px;
        }
        .input-container button {
            background: #0078D7;
            color: white;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
        }
        .chat-toggle-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #0078D7;
            color: white;
            border: none;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            font-size: 24px;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        .chat-toggle-btn i {
            font-size: 28px;
        }