@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&family=Montserrat:wght@400;700&display=swap');

/* === COLORES BANDERA VENEZOLANA === */
:root {
    --yellow: #FFC400;   /* Amarillo Bandera */
    --blue: #003DA5;     /* Azul Bandera */
    --red: #CE1126;      /* Rojo Bandera */
    --white: #ffffff;
    --dark: #1a1a1a;
    --light-gray: #f5f5f5;
    --text-dark: #333333;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* --- Animaciones --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

/* --- Retraso para cada sección --- */
#features { animation-delay: 0.2s; }
#description { animation-delay: 0.4s; }
#exchange { animation-delay: 0.5s; }
#gallery { animation-delay: 0.7s; }
#improve { animation-delay: 0.9s; }

/* --- Colores y Estilos --- */

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-light {
    background-color: #fff !important;
}

.hero-section {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue) 50%, var(--red) 100%);
    color: var(--white);
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 196, 0, 0.15) 0%, rgba(206, 17, 38, 0.15) 100%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.logo-container {
    background-color: #ffffff;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-section .btn-primary {
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: var(--blue);
    padding: 14px 40px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 50px;
    box-shadow: 0 6px 25px rgba(255, 196, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-section .btn-primary:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255, 196, 0, 0.5);
}

section {
    padding: 80px 0;
}

#features {
    background-color: var(--white);
}

#features h3 {
    font-weight: bold;
    color: var(--blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

#features .bi {
    color: var(--red);
}

#features p {
    color: var(--text-dark);
    line-height: 1.6;
}

.bg-light {
    background-color: #fff !important;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- Tamaños de Imagen --- */

.description-img {
    max-width: 350px;
    margin: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.description-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 61, 165, 0.3);
}

.improve-img {
    max-width: 280px;
    margin: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.improve-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 61, 165, 0.3);
}

.improve-img-large {
    max-width: 400px;
    margin-top: 20px;
}


#improve {
    background: linear-gradient(135deg, rgba(0, 61, 165, 0.05) 0%, rgba(206, 17, 38, 0.05) 100%);
}

#improve h4 {
    font-weight: bold;
    color: var(--blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

#improve p {
    color: var(--text-dark);
    line-height: 1.6;
}

#improve a {
    color: var(--red);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

#improve a:hover {
    color: var(--blue);
    border-bottom-color: var(--yellow);
}

footer.bg-dark {
    background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%) !important;
    margin-top: 5rem;
    padding: 3rem 0 !important;
}

footer {
    color: var(--white);
}

footer p {
    margin-bottom: 0.5rem;
}

/* === MEJORAS ADICIONALES === */

#description h2,
#exchange h2 {
    color: var(--blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#description p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

#gallery {
    background-color: var(--white);
}

#gallery h2 {
    color: var(--blue);
    font-size: 2rem;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

/* === GALLERY GRID === */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 9 / 16;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 61, 165, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* === RESPONSIVE GALLERY === */

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-item {
        aspect-ratio: 9 / 12;
    }
}

/* === NAVBAR MEJORADO === */

.navbar {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--blue) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--red) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--yellow);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-brand {
    color: var(--blue) !important;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--red) !important;
}

/* === NAVBAR CON MOLTE VOCI === */

/* Riduci padding sui link quando ci sono molte voci */
.navbar-nav .nav-item {
    white-space: nowrap;
}

.navbar-nav .nav-link {
    padding: 8px 12px !important;
    margin: 0 2px;
    font-size: 0.9rem;
}

/* Su schermi grandi, mantieni tutto visibile */
@media (min-width: 992px) {
    .navbar-nav {
        align-items: center;
        gap: 0;
    }

    .navbar-nav .nav-link {
        padding: 8px 10px !important;
        font-size: 0.85rem;
    }
}

/* Su schermi medi, riduci ancora */
@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-nav .nav-link {
        padding: 6px 6px !important;
        font-size: 0.8rem;
        margin: 0 1px;
    }

    .navbar-brand span {
        display: none; /* Nasconde testo, mostra solo logo */
    }
}

/* === DARK MODE TOGGLE BUTTON === */

.dark-mode-toggle {
    position: relative;
    background: transparent;
    border: 2px solid var(--blue);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--blue);
    padding: 0;
    margin: 0 8px;
}

.dark-mode-toggle:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--dark);
    transform: scale(1.1);
}

.dark-mode-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.4);
}

.dark-mode-toggle i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.dark-mode-toggle:hover i {
    transform: rotate(15deg);
}

/* Responsive toggle button */
@media (max-width: 991px) {
    .dark-mode-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        margin: 10px 0;
    }
}

/* === MENU MOBILE MIGLIORATO === */

@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        flex-direction: column;
        align-items: stretch !important;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid #eee;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        font-size: 1rem;
        margin: 0;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    /* Dark mode toggle in mobile menu */
    .navbar-nav .nav-item .dark-mode-toggle {
        margin: 10px auto;
    }
}

/* === PRIVACY PAGE STYLES === */

#top {
    scroll-behavior: smooth;
}

.privacy-section {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* === MEDIA QUERIES PARA RESPONSIVE === */

@media (max-width: 992px) {
    .description-img {
        max-width: 280px;
    }

    .improve-img {
        max-width: 240px;
    }

    .improve-img-large {
        max-width: 320px;
    }
}

/* === GLASSMORPHISM & ADVANCED EFFECTS === */

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 61, 165, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 196, 0, 0.4);
    }
}

/* Feature Cards Glassmorphism Effect */
#features .col-md-4 {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

#features .col-md-4:nth-child(1) { animation-delay: 0.1s; }
#features .col-md-4:nth-child(2) { animation-delay: 0.2s; }
#features .col-md-4:nth-child(3) { animation-delay: 0.3s; }

#features .col-md-4 {
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(0, 61, 165, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#features .col-md-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.1) 0%, rgba(206, 17, 38, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#features .col-md-4:hover::before {
    opacity: 1;
}

#features .col-md-4:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 61, 165, 0.2);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 196, 0, 0.3);
}

#features .col-md-4:hover .bi {
    animation: glow 1.5s ease-in-out infinite;
    transform: scale(1.2) rotate(5deg);
}

/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.btn:active::before {
    animation: ripple 0.6s ease-out;
}

/* Gallery Item Enhanced */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    aspect-ratio: 9 / 16;
    background: linear-gradient(135deg, rgba(0, 61, 165, 0.05), rgba(206, 17, 38, 0.05));
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.2) 0%, rgba(206, 17, 38, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 25px 60px rgba(0, 61, 165, 0.35);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    z-index: 0;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Section Title Enhancement */
h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow), var(--red));
    border-radius: 2px;
    transition: width 0.3s ease;
}

#features h2::after {
    width: 80px;
}

/* Form Elements Styling */
.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.form-control:focus, .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
    background-color: #fff;
}

.form-control::placeholder {
    color: #999;
    font-style: italic;
}

.form-control.is-focused, .form-select.is-focused {
    border-color: var(--yellow);
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.form-control:valid:not(:placeholder-shown) {
    border-color: #27ae60;
}

/* Contact Section Styles */
#contact {
    background: linear-gradient(135deg, rgba(0, 61, 165, 0.03) 0%, rgba(206, 17, 38, 0.03) 100%);
}

.contact-form {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 61, 165, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.8s ease-out;
}

.contact-form h3 {
    color: var(--blue);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.contact-form p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-top: 30px;
    border: 1px solid rgba(0, 61, 165, 0.1);
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--yellow);
}

.contact-info i {
    font-size: 2rem;
    color: var(--red);
    margin-right: 20px;
    min-width: 60px;
}

.contact-info-content h4 {
    color: var(--blue);
    margin: 0 0 5px 0;
    font-weight: 600;
}

.contact-info-content p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.btn-submit {
    background: linear-gradient(135deg, var(--yellow), var(--red));
    border: none;
    color: var(--white);
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    font-size: 1rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(206, 17, 38, 0.3);
    color: var(--white);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.alert-success, .alert-danger {
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
    animation: slideInDown 0.4s ease-out;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.alert-danger {
    background-color: rgba(206, 17, 38, 0.1);
    color: #c41c3b;
}

/* === MEDIA QUERIES PARA RESPONSIVE === */

@media (max-width: 992px) {
    .description-img {
        max-width: 280px;
    }

    .improve-img {
        max-width: 240px;
    }

    .improve-img-large {
        max-width: 320px;
    }

    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    #features h3 {
        font-size: 1.2rem;
    }

    #description h2,
    #gallery h2,
    #contact h2 {
        font-size: 1.6rem;
    }

    .hero-section {
        min-height: 70vh;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .description-img {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .improve-img {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .improve-img-large {
        max-width: 100%;
    }

    #features .col-md-4 {
        margin-bottom: 20px;
    }

    .contact-form {
        padding: 25px;
    }

    .contact-form h3 {
        font-size: 1.5rem;
    }
}

/* === COOKIE CONSENT BANNER === */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--blue) 0%, rgba(0, 61, 165, 0.95) 100%);
    backdrop-filter: blur(15px);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    border-top: 3px solid var(--yellow);
    display: none;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

.cookie-text i {
    font-size: 2rem;
    color: var(--yellow);
    flex-shrink: 0;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.cookie-text a {
    color: var(--yellow);
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-text a:hover {
    color: var(--white);
    text-decoration: none;
}

.cookie-btn {
    background: var(--yellow);
    color: var(--blue);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 196, 0, 0.3);
    white-space: nowrap;
}

.cookie-btn:hover {
    background: var(--white);
    color: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 196, 0, 0.5);
}

.cookie-btn:active {
    transform: translateY(-1px);
}

.cookie-btn i {
    margin-right: 5px;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-text {
        flex-direction: column;
        text-align: center;
        min-width: auto;
    }

    .cookie-text i {
        font-size: 1.5rem;
    }

    .cookie-text p {
        font-size: 0.9rem;
    }

    .cookie-btn {
        width: 100%;
        padding: 14px;
    }
}
