/* =======================================================
   RESET Y GLOBAL
======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #fffcf7ff;
    color: #2d3a4bff;
    line-height: 1.5;
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
}

::selection {
  background: #9d79e0;
}

::-moz-selection {
  background: #9d79e0;
  color: #ffffff;
}

/* Contenedor general */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Cursor personalizado */
#cursor {
    position: fixed;
    width: 22px;
    height: 22px;
    border: 2px solid #fffcf7ff;
    background-color: #9d79e0ff;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.05s linear, background-color 0.2s, border-color 0.2s;
    z-index: 9999;
}

a:hover ~ #cursor,
button:hover ~ #cursor {
    background-color: #fffcf7ff;
    border-color: #9d79e0ff;
}

/* =======================================================
   HEADER Y NAVEGACIÓN
======================================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    background: #fffcf7ff;
    z-index: 100;
}

.logo {
    font-weight: 600;
    font-size: 1.5rem;
    cursor: pointer;
}

.logo img {
    max-height: 50px;
    width: auto;       
}

.menu {
    display: flex;
    gap: 2rem;
}

.menu a {
    font-weight: 500;
    cursor: pointer;
    color: #2d3a4bff;
    transition: color 0.3s;
}

.menu a:hover {
    color: #9d79e0ff;
}

/* Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2d3a4bff;
    display: block;
    transition: all 0.3s ease;
}

/* Menú móvil */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .menu {
        position: fixed;
        top: 0;
        right: -50%;
        height: 100vh;
        width: 50%;
        background: #fffcf7ff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.08);
    }

    .menu.open {
        right: 0;
    }
}

/* =======================================================
   SECCIONES GENERALES
======================================================= */
section {
    padding: 4rem 0;
    scroll-margin-top: 90px;
}

p {
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.4;
}


/* =======================================================
   HERO
======================================================= */
.hero {
    display: flex;
    justify-content: flex-start; /* alineación izquierda */
    align-items: center;
    height: 80vh; /* ocupa la altura del viewport */
    padding-left: 1rem; /* opcional: un poco de margen desde el borde */
}

.hero svg {
    max-width: 1000px;  /* tamaño máximo en desktop */
    width: 100%;       /* escala proporcional al contenedor */
    display: block;
    margin: 0;         /* quita el centrado automático */
}

.hero svg text {
    fill: #2d3a4bff; /* color del texto */
}


/* =======================================================
   SERVICIOS
======================================================= */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    flex: 1 1 calc(25% - 1.5rem);
    border: 1px solid;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Colores de borde de cada card */
.service-card.card-1 { border-color: #7fccbaff; }
.service-card.card-2 { border-color: #e8a845ff; }
.service-card.card-3 { border-color: #e07137ff; }
.service-card.card-4 { border-color: #9d79e0ff; }

/* =======================================================
   EXPERIENCIA
======================================================= */

.experience-text {
    display: flex;
    justify-content: flex-start; /* alineación izquierda */
    align-items: center;
    height: auto; /* ajusta según contenido */
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.experience-text svg {
    max-width: 900px;
    width: 100%;
    display: block;
    margin: 0;
}

.experience-text svg text {
    fill: #2d3a4bff;
}



/* =======================================================
   GALERÍA DE EXPERIENCIA
======================================================= */
.experience-gallery {
    column-count: 3;        /* Número de columnas en desktop */
    column-gap: 1rem;       /* Espacio entre columnas */
    width: 100%;
}

.gallery-item {
    display: inline-block;  /* Necesario para column layout */
    width: 100%;
    margin-bottom: 1rem;    /* Espacio vertical entre items */
    border: 1px solid #9d79e0ff; /* Línea violeta*/
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item.square {
    aspect-ratio: 3 / 2;     /* Bloque cuadrado */
}

.gallery-item.vertical {
    aspect-ratio: 2 / 3;     /* Bloque vertical más alto */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* La imagen llena el bloque y se recorta si hace falta */
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .experience-gallery {
        column-count: 2;      /* 2 columnas en tablet */
        column-gap: 0.8rem;
    }
}

@media (max-width: 600px) {
    .experience-gallery {
        column-count: 1;      /* 1 columna en mobile */
        column-gap: 0.5rem;
    }
}



/* =======================================================
   SLIDER DE LOGOS
======================================================= */
.logo-slider {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    width: 100%;
}

.logo-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 200%;
}

.logo-slide {
    display: flex;
    flex-direction: column;
    flex: 0 0 50%;
    gap: 2rem;
}

.logo-row {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.logo-row img {
    width: 150px;
    height: 75px;
    object-fit: contain;
}


/* =======================================================
   NOSOTROS / TEAM
======================================================= */
.team-text {
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.team-text svg {
    max-width: 900px;
    width: 100%;
    display: block;
    margin: 0;
}

.team-text svg text {
    fill: #2d3a4bff;
}

.team-text p {
    font-size: clamp(1.4rem, 4vw, 2.1rem);
    line-height: 1.4;
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
    word-break: normal;
    overflow-wrap: break-word;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
}

.team-card {
    flex: 1 1 calc(20% - 1.5rem);
    border: 1px solid;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.team-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

/* Colores de borde por card */
.team-card.card-1 { border-color: #e07137ff; }
.team-card.card-2 { border-color: #7fccbaff; }
.team-card.card-3 { border-color: #e8a845ff; }
.team-card.card-4 { border-color: #7fccbaff; }
.team-card.card-5 { border-color: #9d79e0ff; }

/* =======================================================
   CONTACTO
======================================================= */
.contact-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap; /* en mobile se pasa abajo el gif */
}

.contact-gif {
    width: 300px;
    max-width: 40%;
    height: auto;
    flex-shrink: 0;
}

.contact-text {
    width: 55%;  /* ocupa más de la mitad para que no quede chico */
    padding-left: 1rem;
}

.contact-text svg {
    width: 100%;
    max-width: 700px;
    display: block;
    margin: 0;
}

.contact-text svg text {
    fill: #2d3a4bff;
}

/* Responsive */
@media(max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-gif {
        max-width: 70%;
    }

    .contact-text {
        width: 100%;
        padding-left: 0;
    }
}

/* =======================================================
   GALERÍA CONTACTO
======================================================= */
.contact-galery {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    width: 100%;
}

.contact-track {
    display: flex;
    transition: transform 0.5s ease;
}

.contact-track img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: 10px;
    border: 1px solid #9d79e0ff;
}

/* Paginación tipo dots */
.contact-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 0.5rem;
}

.contact-pagination .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-pagination .dot.active {
    background: #9d79e0ff;
}


/* =======================================================
   FOOTER
======================================================= */
footer {
    background-color: #2d3a4bff;
    color: #fffcf7ff;
    text-align: center;
    padding: 2rem;
    width: 100%;
}

/* =======================================================
   RESPONSIVE
======================================================= */
@media(max-width:900px){
    .service-card { flex: 1 1 100%; } /* todas ocupan 100% ancho */
    .team-card { flex: 1 1 calc(50% - 1.5rem); }
    .hero-text, .experience-text, .team-text, .contact-text { font-size: 2.1rem; width: 100%; }
}

@media(max-width:600px){
    .hero { flex-direction: column; justify-content: center; height: auto; padding: 2rem 0; }
    .contact-container { flex-direction: column; align-items: flex-start; }
    .team-card { flex: 1 1 calc(50% - 0.75rem); max-width: calc(50% - 0.75rem); }
    .team-grid { justify-content: flex-start; }
    .hero-text, .experience-text, .team-text, .contact-text { font-size: 1.8rem; width: 100%; }
    .contact-text { font-size: 1.5rem; }
    .contact-mail { font-size: 1.3rem; }
}

/* Scroll smooth */
html { scroll-behavior: smooth; }

