.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 100px;
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, rgba(26, 79, 109, 0.9), rgba(49, 153, 151, 0.9), rgba(95, 114, 190, 0.9), rgba(26, 79, 109, 0.9));
    background-size: 400% 400%;
    animation: gradientAnimation 8s ease infinite;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.footer {
    min-height: 200px;
    background: linear-gradient(45deg, #1a4f6d, #319997, #5f72be, #1a4f6d);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
}

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

.logo{height: 80px; object-fit: contain;}
.texto {font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased; /* Da nítdezz en Mac */
    letter-spacing: -0.01em;}
.fotosPie { width: 250px; height: 250px; }
.card-img-top { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }


.navbar-nav .nav-link {
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: transform 0.2s, color 0.2s;
    opacity: 0.9;
}
.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
    opacity: 1;
    color: #ffd700 !important;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.search-box:hover, .search-box:focus-within {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-search-icon {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.input-minimal {
    background: transparent;
    border: none;
    color: white;
    padding-left: 10px;
    width: 100px;
    outline: none;
    transition: width 0.4s ease;
}

.input-minimal::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-minimal:focus {
    width: 200px;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.container-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.formulario, .welcome-back {
    width: 90%; max-width: 450px; text-align: center; display: flex; flex-direction: column;
}
.formulario   { order: 1; }
.welcome-back { order: 2; margin-top: 1rem; }

.formulario input {
    width: 100%; padding: 15px; margin-bottom: 15px; border-radius: 12px;
    border: 1px solid #f0f0f0; background: #f9f9f9; outline: none;
    font-size: 1rem; box-sizing: border-box; transition: 0.2s;
}

.formulario input:not([type="submit"]):focus {
    background: #fff; border-color: #2c7a7b; box-shadow: 0 4px 10px rgba(44, 122, 123, 0.1);
}

.formulario input[type="submit"] {
    background: #2c7a7b; color: #fff; font-weight: bold; border: none; cursor: pointer;
}
.formulario input[type="submit"]:hover { background: #236c6d; }

.formulario h2 { font-weight: 800; font-size: 2rem; margin-bottom: 1.5rem; color: #111; }

.formuxp, .welcome-back {
    display: flex; flex-direction: column;
}
.formuxp   { order: 1; }
.welcome-back { order: 2; margin-top: 1rem; }

.formuxp input {
    width: 100%; padding: 15px; margin-bottom: 15px; border-radius: 12px;
    border: 1px solid #f0f0f0; background: #f9f9f9; outline: none;
    font-size: 1rem; box-sizing: border-box; transition: 0.2s;
}

.formuxp input:not([type="submit"]):focus {
    background: #fff; border-color: #2c7a7b; box-shadow: 0 4px 10px rgba(44, 122, 123, 0.1);
}

.formuxp input[type="submit"] {
    background: #2c7a7b; color: #fff; font-weight: bold; border: none; cursor: pointer;
}
.formuxp input[type="submit"]:hover { background: #236c6d; }

.formuxp h2 { font-weight: 800; font-size: 2rem; margin-bottom: 1.5rem; color: #111; }

.iconos { display: flex; justify-content: center; gap: 15px; margin-bottom: 2rem; }

.border-icon {
    width: 45px; height: 45px; border-radius: 50%; border: 1px solid #eee;
    display: flex; align-items: center; justify-content: center; color: #666;
}
.border-icon:hover { background: #2c7a7b; color: white; border-color: #2c7a7b; }

.welcome-back h2 { display: none; }
.welcome-back p  { color: #888; display: inline; margin-right: 5px; }
.welcome-back a, .welcome-back button {
    background: none; border: none; color: #2c7a7b; font-weight: bold;
    padding: 0; font-size: 0.95rem; text-decoration: none; cursor: pointer;
}

@media (max-width: 768px) {
    body { height: auto; overflow-y: auto; }
    .container-form { padding: 40px 20px; }
}

.row.encuentros .card-body,
.row.productos .card-body {
    display: flex;
    flex-direction: column;
}
.row.encuentros .btn,
.row.productos .btn {
    margin-top: auto !important;
}

.row.productos h4 {
    min-height: 4rem;
}
.row.encuentros h4 {
    min-height: auto;
    margin-bottom: 0.5rem;
}
.row.encuentros p.text-uppercase {
    min-height: 3rem;
}

.row.encuentros .badge,
.row.productos .badge {
    width: max-content !important;
}

.row.encuentros .card, .row.productos .card {
    transition: transform 0.3s ease;
}
.row.encuentros .card:hover, .row.productos .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.row.experiencias {
    display: flex;
    flex-wrap: wrap;
}

.row.experiencias > div {
    display: flex;
}

.row.experiencias .card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.row.experiencias .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.row.experiencias .blockquote-footer {
    margin-top: auto;
    padding-top: 1rem;
}