:root {
    --primary-color: #6366f1;
    --secondary-color: #f3f4f6;
    --text-color: #111827;
    --text-muted-color: #6b7280;
}

body {
    background: #fff;
    font-family: "Inter", "Space Grotesk", sans-serif;
    margin: 0;
    padding: 0;
}
.heroBg {
    width: 100%;
    height: auto;
    background-image: url("../assets/bghero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative; /* Necesario para el overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  z-index: 1;
  padding-bottom: 2rem!important;
}
.heroBg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* negro con 50% de opacidad */
  z-index: -1; /* detrás del contenido */
}
.heroBg h1, .heroBg p{
    color: white;
}

.heroBg p{
    font-size: 1.5em;
    word-break: break-all;
    max-width: 80%;
}
.heroBg a {
    text-decoration: none;
}
section .grid ul{
    text-align: left;
}
.layout-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding: 5px 2.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
}

.header-brand, .header-brand a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #111827;
    text-decoration: none;
}

.header-brand h2 {
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: -0.015em;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
nav button a {
    color: #fff;
    text-decoration: none;
}

nav a:hover {
    color: #111827;
}

nav button {
    min-width: 84px;
    max-width: 480px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    height: 40px;
    padding: 0 1.25rem;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.95rem;
    font-weight: bold;
    border: none;
    transition: background 0.2s;
}

nav button:hover {
    background: #4f46e5;
}



.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 1em;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

section {
    padding: 2.5rem 2.5rem;
}
section.heroBg {
    padding: 0;
}

.text-center {
    text-align: center;
}

h1 {
    color: #111827;
    font-size: 2.25rem;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
}

h2 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.flex {
    display: flex;
    gap: 1rem;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-cols-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.rounded-lg {
    border-radius: 16px;
}

.bg-white {
    background: #fff;
}

.bg-secondary {
    background: var(--secondary-color);
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(99,102,241,0.08);
}

.hover-shadow-lg:hover {
    box-shadow: 0 4px 24px rgba(99,102,241,0.15);
}

.transition-shadow {
    transition: box-shadow 0.3s;
}

.aspect-video {
    aspect-ratio: 16/9;
    min-height: 180px;
    background-size: cover;
    background-position: top;
}

.group {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
}

.group .absolute {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: background 0.3s;
}

.group:hover .absolute {
    background: rgba(0,0,0,0.5);
}

.group .transform {
    transform: translateY(1rem);
    transition: transform 0.5s;
}

.group:hover .transform {
    transform: translateY(0);
}

footer {
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2.5rem;
}

footer .flex {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

footer a {
    color: var(--text-muted-color);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--text-color);
}

footer svg {
    width: 1.5rem;
    height: 1.5rem;
}

footer p {
    color: var(--text-muted-color);
    font-size: 0.95rem;
    text-align: center;
    margin-top: 2rem;
}
#email{
    display: none;
}
#services ul li{
    text-align: left;
}
.transform h3, .transform p {
    color: #E5E7EB !important;
    background-color: rgba(29, 78, 216, 0.7);
}
.contact-form {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(99, 102, 241, 0.08);
    padding: 2rem;
    width: 100%;
    max-width: 680px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-form label {
    display: block;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: left;
}
.contact-form input[type="text"],
.contact-form textarea,
.contact-form input[type="tel"] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    background: var(--secondary-color);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input[type="text"]:focus,
.contact-form textarea:focus,
.contact-form input[type="tel"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
    outline: none;
}
.contact-form input[type="text"]:invalid,
.contact-form textarea:invalid,
.contact-form input[type="tel"]:invalid {
    border-color: #f87171;
}
.contact-form button[type="submit"] {
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
    background: #4f46e5;
    color: #fff;
}
.contact-form button[type="submit"]:hover {
    background: #6366f1;
}

@media (max-width: 1024px) {
    section {
        padding: 2.5rem 1.5rem;
    }
    section.heroBg {
    padding: 0;
}
    .grid-cols-3 {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    header, .layout-container, main, footer, 
    section.heroBg, .container, .contact-form {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    
    header {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    .contact-form {
        padding: 1rem;
        max-width: 100%;
        margin: 1rem auto;
    }
    .contact-form button[type="submit"] {
        width: 100%;
    }
    .grid, .grid-cols-2, .grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    h1, h2, h3 {
        font-size: 1.5rem !important;
    }
    .flex {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .footer .flex {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .aspect-video {
        height: 180px !important;
        min-height: 120px !important;
        aspect-ratio: initial !important;
    }
    .max-w-4xl, .max-w-3xl, .max-w-2xl, .max-w-xl {
        max-width: 100% !important;
    }

    .group .absolute{
        justify-content: center !important;
        text-align: center !important;
    }

}
@media (max-width: 480px) {
    h1, h2, h3 {
        font-size: 1.1rem !important;
    }
    .contact-form {
        padding: 0.5rem;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }
    .contact-form button[type="submit"] {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

.modal {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
}
.modal-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    position: relative;
    max-width: 500px;
    max-height: 90vh;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    overflow: scroll;
}
.close-btn {
    position: absolute;
    top: 12px; right: 18px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    font-weight: bold;
}

.preciopack {
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    cursor: none;
    transition: background 0.2s;
    margin-top: 0.5rem;
    margin-bottom: 10px;
    background: #4f46e5;
    color: #fff;
    width: 100px;
    text-align: center;
    place-self: center;
}


.flex ul li{
    line-height: 1.8;
}

.planes h3{
    text-align: center;
}
.planes p{
    text-align: center;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #4f46e5;
}
.planes .flex-col.gap-2 {
    padding: 0 1rem;
}
/* Clase para grids responsivas */
.responsive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem; /* puedes ajustar */
}

/* En tablets (menor a 992px) → 2 columnas */
@media (max-width: 992px) {
  .responsive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* En móviles (menor a 768px) → 1 columna */
@media (max-width: 768px) {
  .responsive-grid {
    grid-template-columns: 1fr;
  }
}

/**/
/* 1. Estilos por Defecto (Móvil < 768px): Una columna al 100% */
.contenedor-portafolio {
    /* Define el margen entre ítems (el "gap") */
    margin-bottom: 20px;
    padding: 0 15px; /* Pequeño padding para móviles */
}

/* 2. Todos los ítems al 100% de ancho */
.item-portafolio, .item-portafolio-largo {
    width: 100%;
    margin-bottom: 20px; /* Separación vertical entre ítems */
}
/* Estilos de Escritorio (Cuando el viewport es mayor a 768px) */
@media (min-width: 768px) {
    
    /* 1. Limpieza de Float en el Contenedor */
    .contenedor-portafolio::after {
        content: "";
        display: table;
        clear: both; /* Necesario para que el contenedor envuelva los floats */
    }

    /* 2. Item Normal (50% de Ancho) */
    .item-portafolio {
        /*
          * float: left/right; permite que los elementos se posicionen uno al lado del otro.
          * El ancho es 50% menos la mitad del margen entre ellos (ej: 20px).
        */
        float: left;
        width: calc(50% - 10px); /* 50% - (margin-right / 2) */
        margin-right: 20px; /* Margen horizontal entre columnas */
        margin-bottom: 20px; /* Mantenemos separación vertical */
    }

    /* 3. Ajuste del Último Ítem de cada Fila */
    .contenedor-portafolio > .item-portafolio:nth-child(2n) {
        margin-right: 0; /* Elimina el margen derecho del segundo, cuarto, etc., elemento */
    }

    /* 4. Ítem Largo (100% de Ancho) */
    .item-portafolio-largo {
        clear: both; /* Fuerza a este elemento a empezar en una nueva línea */
        width: 100%;
        margin-right: 0;
    }
}