/* Reseteo básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #F5F9FF;
}

/* Sistema de rejilla de 12 columnas (1080px de ancho) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Relleno para que el contenido no toque los bordes */
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 18px; /* Canaleta */
}

/* Clases de columna */
.grid-col-1 { grid-column: span 1; }
.grid-col-2 { grid-column: span 2; }
.grid-col-3 { grid-column: span 3; }
.grid-col-4 { grid-column: span 4; display: flex; flex-direction: column;}
.grid-col-5 { grid-column: span 5; }
.grid-col-6 { grid-column: span 6; }
.grid-col-7 { grid-column: span 7; }
.grid-col-8 { grid-column: span 8; }
.grid-col-9 { grid-column: span 9; }
.grid-col-10 { grid-column: span 10; }
.grid-col-11 { grid-column: span 11; }
.grid-col-12 { grid-column: span 12; }

/* Estilos de botones */
.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    }

.btn-primary {
    background-color: #8a2be2; /* Púrpura */
    color: #fff;
}

.btn-secondary {
    background-color: #8520CC; /* Lavanda claro */
    color: #fff;
    position: relative; /* CLAVE */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: 1px solid #8D0BE8;
    border-radius: 35px;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden; /* CLAVE */
    transition: color 0.2s ease-in-out;
    z-index: 0;
}
.btn-secondary::after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  background-color: #F9EC09;
  border-radius: 3rem;
  top: 0;
  left: 0;
  transform: translate(-100%, 0) rotate(10deg);
  transform-origin: top left;
  z-index: -1;
  transition: transform 0.2s ease-out;
}
.btn-secondary:hover::after {
  transform: translate(0, 0);
}

.btn-secondary:hover {
  border: 1px solid transparent;
  color: #000;
  /*transform: scale(1.05);*/
}

.btn-tertiary {
    background-color: #6a0dad; /* Púrpura oscuro */
    color: #fff;
}



.btn-submit {
    background-color: #6a0dad!important;
    color: #fff;
    width: 100%;
    padding: 10px;
}

/* Títulos de sección */
.section-title {
    text-align: center;
    font-size: 2.1em;
    font-weight: bold;
    margin-bottom: 40px;
    grid-column: span 12;
    font-family: "Montserrat", sans-serif;
}

h2{
  font-size: 40px;
}

h3{
  font-family: "Roboto", sans-serif;
  font-size: 24px;
}



.logo{
  max-width: 60px;
  height: auto;
}

.highlight {
    color: #8520CC;
}


/* Hero Section */
.hero-section {
    padding-top: 80px;
    align-items: center;
    padding-bottom: 30px;

}
.hero-content {
    grid-column: span 6;
}

.hero-image {
    grid-column: span 6;

}

.fotoperfil{
  width: 100%;    /* La imagen llena el ancho del contenedor */
  height: auto;   /* La altura se ajusta proporcionalmente */
  display: block; /* Elimina espacios en blanco inferiores */
}



.hero-intro{
  font-size: 28px;
  font-family: font-family: "Roboto", sans-serif;
  font-weight: bold;
}

.hero-title {
    font-size: 40px;
    color: #52479E;
    line-height: 1.2em;
    font-family: "Montserrat", sans-serif;
}
.hero-title2 {
    font-size: 30px;
    line-height: 1.2em;
    color: #52479E;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
}

.hero-color{
  background: #8520CC;
  background: linear-gradient(-45deg, #8520CC, #52479E, #431066);
  background-size: 400% 400%;
	animation: gradient 25s ease infinite;
}

.hero-stats {
    color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    grid-column: span 12;
}

.stat-uno{
  display: grid;
   grid-template-columns: 90px 150px;
   padding: 0 ;
   text-align: left;
   align-items: center;
}

.stat-item {
  display: grid;
   grid-template-columns: 135px 160px;
  /*grid-template-columns: 1fr 1fr;*/
  /*grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
    padding: 0 ;
    text-align: left;
    align-items: center;
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    float: left;}

.stat-text {
    font-size: 16px;
    float: right;
}
.stat-internacional{
  width: 200px;
}

.stat-text-lg {
    font-size: 1.2em;
    font-weight: bold;
}

/* Pilares Section */

#pilares{
  padding-top: 90px;
  padding-bottom: 80px;
}

.icon-pilar{
  min-height: 65px;
  align-items: center;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 18px;
    grid-column: span 12;
}

.pilar-card {
    background-color: #CFCAF5; /* Lavanda muy claro */
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.pilar-card h3 {
    margin-bottom: 15px;
    color: #000;
}

.pilar-subtext {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

/* Proyectos Section */

#proyectos{
    margin-top: 100px;
    background-color: #CFCAF5;
    padding-top: 80px;
    padding-bottom: 50px;
}

/*h2 .section-title{}*/

.proyectos-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    grid-column: span 12;

}

.custom-hr{

  border: 1px solid #8520CC;
  height: 1px;
  width: 100%; /* Ancho opcional */
  margin: 20px auto; /* Centrado y espacio */
}

.proyecto-item {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 18px;
    padding-bottom: 40px;
    padding-top: 40px;
}

.proyecto-image {
    grid-column: span 4;
    /* Estilo para la captura de pantalla */
}

.proyecto-details {
    grid-column: span 8;
}

.proyecto-details h3{
  color: #52479E;
}

.proyecto-info {
    list-style: none;
    margin: 20px 0;
}

.proyecto-info li {
    margin-bottom: 10px;
}

.btn-case {
    background: #8520CC;
    /*background: linear-gradient(180deg, rgba(133, 32, 204, 1) 0%, rgba(67, 16, 102, 1) 68%);*/
    color: #fff;
    position: relative; /* CLAVE */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border: 1px solid #8D0BE8;
    border-radius: 35px;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden; /* CLAVE */
    transition: color 0.2s ease-in-out;
    z-index: 0;
}
.btn-case::after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  background: #F9EC09;
  /*background: linear-gradient(180deg, rgba(249, 236, 9, 1) 0%, rgba(210, 192, 3, 1) 68%);*/
  border-radius: 3rem;
  top: 0;
  left: 0;
  transform: translate(-100%, 0) rotate(10deg);
  transform-origin: top left;
  z-index: -1;
  transition: transform 0.2s ease-out;
}
.btn-case:hover::after {
  transform: translate(0, 0);
}

.btn-case:hover {
  border: 1px solid transparent;
  color: #000;
  /*transform: scale(1.05);*/
}



/* Enfoque Section */

#enfoque{
  padding-top: 90px;
  padding-bottom: 90px;
}
.enfoque-section {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.enfoque-content {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
}

.enfoque-image {
    grid-column: span 4;
}

.photo-placeholder {
    background-color: #eee;
    color: #888;
    height: 300px;
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
}

.enfoque-details {
    grid-column: span 8;
}

.enfoque-list {
    /*list-style: none;
    margin: 30px 0;*/
    padding-left: 25px;
    font-size: 18px;
}

.enfoque-list li {
    margin-bottom: 15px;
}

/* Contacto Section */

#contacto{
  background: #8520CC;
  background: linear-gradient(-45deg, #8520CC, #431066, #C5B2E0, #52479E);
  background-size: 400% 400%;
	animation: gradient 25s ease infinite;
	/*height: 100vh;*/
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.contacto-section {
    padding: 60px 0;
    color: #fff;
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.contacto-wrapper {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 18px;
}

.contacto-text {
    grid-column: span 6;
    font-size: 1.5em;
    font-weight: bold;
}

.contacto-form-container {
    grid-column: span 6;
}

.contact-form {
    background-color: #f2e6ff;
    padding: 30px;
    border-radius: 10px;
    color: #333;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: #6a0dad;
}

.contact-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Pie de página */
.main-footer {
    padding-top: 15px;
    background-color: #000;
    color: #fff;
    align-items: center;
    justify-content: center;
}



/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */

/* 1. Ajustes para Tablets y Laptops pequeñas (Máximo 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 95%; /* Damos un poco de aire a los bordes */
        grid-gap: 15px;
    }

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

    .stat-number {
        font-size: 2.2em;
    }
}

/* 2. Ajustes para Móviles y Tablets verticales (Máximo 768px) */
@media (max-width: 768px) {

    /* Forzamos que todas las columnas ocupen el ancho total (12/12) */
    .grid-col-4, .grid-col-5, .grid-col-6, .grid-col-7, .grid-col-8, .grid-col-12 {
        grid-column: span 12 !important;
    }

    /* Header: Reorganizamos menú */
    .main-header {
        grid-template-columns: 1fr auto; /* Logo y Chat */
        height: auto;
        padding: 20px;
    }

    .main-nav {
        grid-column: span 12;
        order: 3;
        margin-top: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Hero Section */
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }

    .hero-image {
        order: -1; /* La foto sale arriba del texto en móvil */
        margin-bottom: 20px;
    }

    .hero-ctas {
        justify-content: center;
        max-width:300px;
        min-width: 200px;
    }

    /* Estadísticas: de 4 en línea a 2x2 */
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
    }

    .stat-item {
        width: 45%; /* Dos por fila */
    }

    .stat-item.international {
        width: 100%; /* El texto largo ocupa toda la fila */
    }

    /* Pilares: Se apilan uno tras otro */
    .pilares-grid {
        display: flex;
        flex-direction: column;
    }

    /* Proyectos: Imagen arriba, texto abajo */
    .proyecto-item {
        display: flex;
        flex-direction: column;
        margin-bottom: 40px;
    }

    .proyecto-image img {
        width: 100%;
        height: auto;
    }

    /* Enfoque Profesional */
    .enfoque-content {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .photo-placeholder {
        margin-bottom: 20px;
    }

    /* Formulario de Contacto */
    .contacto-wrapper {
        display: flex;
        flex-direction: column;
    }

    .contacto-text {
        text-align: center;
        font-size: 1.2em;
        margin-bottom: 30px;
    }


}
