body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.subtle-nav {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.subtle-nav a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.subtle-nav a:hover {
    color: #B8860B;
}

.subtle-nav a.active {
    color: #B8860B;
    font-weight: bold;
}

.divider {
    color: #444;
    font-size: 0.8rem;
}

.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

footer {
    padding: 2rem 0;
    text-align: center;
    width: 100%;
    background-color: #000;
}

h1 {
    font-size: 4rem;
    margin: 0 0 3rem 0;
    color: #ccc;
}

.main-logo {
    max-width: 500px;
    height: auto;
    margin-bottom: 1rem;
}

.welcome-text {
    color: #aaa;
    font-size: 1.1rem;
    margin: 1rem 0;
    text-align: center;
    max-width: 600px;
}

.quote-author {
    color: #888;
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: right;
    font-style: italic;
}

.about-text {
    max-width: 600px;
    margin: 1rem auto;
    line-height: 1.6;
    color: #aaa;
    font-size: 1rem;
}

.contact-info {
    text-align: center;
    max-width: 500px;
    margin: 2rem auto;
}

.contact-info p {
    color: #aaa;
    font-size: 1.1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-info i {
    color: #B8860B;
    width: 20px;
}

.tech-stack {
    text-align: center;
    margin-top: 3rem;
}

.tech-stack h3 {
    color: #ccc;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tech-item i {
    font-size: 2.5rem;
    color: #888;
    transition: transform 0.3s ease, color 0.3s ease;
}

.tech-item i:hover {
    transform: scale(1.2);
    color: #B8860B;
}

.tech-item span {
    color: #aaa;
    font-size: 0.9rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

.project-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin: 0 0 1rem 0;
    color: #fff;
    font-size: 1.3rem;
}

.project-info p {
    color: #aaa;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #fff;
}

/* Menú desplegable de Ejemplos */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.dropdown-toggle:hover {
    color: #fff;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Para que el dropdown no se cierre al mover el mouse */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Evitar que se cierre al hacer hover en los items */
.dropdown-menu:hover {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid #333;
}

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

.dropdown-item:hover {
    background-color: #FFD700;
    color: #000;
}

.dropdown-item:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Sección de foto del creador */
.creator-profile {
    text-align: center;
    margin: 2rem 0;
}

.creator-photo {
    width: 120px; /* Reducido de 200px a 120px */
    height: 120px; /* Reducido de 200px a 120px */
    border-radius: 50%; /* Contorno circular */
    object-fit: cover; /* Mantiene proporciones */
    border: 3px solid #FFD700; /* Borde dorado más delgado */
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.3), /* Brillo dorado sutil */
        0 3px 6px rgba(0, 0, 0, 0.3); /* Sombra para profundidad */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.creator-photo:hover {
    transform: scale(1.05); /* Ligero zoom al hover */
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5), /* Brillo dorado más fuerte */
        0 4px 8px rgba(0, 0, 0, 0.4); /* Sombra más pronunciada */
}

/* Responsive para la foto del creador */
@media (max-width: 768px) {
    .creator-photo {
        width: 100px; /* Reducido de 150px a 100px */
        height: 100px; /* Reducido de 150px a 100px */
        border-width: 2px; /* Reducido de 3px a 2px */
    }
}

@media (max-width: 480px) {
    .creator-photo {
        width: 80px; /* Reducido de 120px a 80px */
        height: 80px; /* Reducido de 120px a 80px */
        border-width: 2px; /* Mantenido en 2px */
    }
}

.subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 0.5rem;
}

.site-modal {
    background-color: #000000 !important; /* Fondo negro puro */
    color: #ffffff !important; /* Texto blanco */
    border: 2px solid #FFD700 !important; /* Borde dorado */
}

/* Estilo específico para el logo dentro del modal Bootstrap */
.modal .site-modal-logo,
.modal-content .site-modal-logo,
.modal-body .site-modal-logo {
    width: 450px !important; /* Forzado con !important */
    height: auto !important;
    display: block !important;
    margin: 0 auto 2rem auto !important; /* Más espacio abajo */
    max-width: 90% !important; /* Asegurar que no se desborde */
}

.site-modal-logo {
    width: 450px !important; /* Forzado con !important */
    height: auto !important;
    display: block !important;
    margin: 0 auto 2rem auto !important; /* Más espacio abajo */
    max-width: 90% !important; /* Asegurar que no se desborde */
}

.site-modal-body {
    padding: 2rem;
    text-align: center;
}

.site-modal-title {
    margin: 0;
    color: #ffffff !important; /* Título blanco */
    font-size: 1.2rem;
}

.site-modal-text {
    margin: 0.75rem 0 1.5rem 0;
    color: #cccccc !important; /* Texto gris claro */
}

.site-modal-ok {
    background-color: #FFD700 !important; /* Botón dorado */
    border-color: #FFD700 !important;
    color: #000000 !important; /* Texto negro en botón */
    padding: 0.6rem 2.5rem;
    font-weight: 700;
}

.site-modal-ok:hover {
    background-color: #FFA500 !important; /* Naranja al hover */
    border-color: #FFA500 !important;
    color: #000000 !important;
}

/* Asegurar que el modal Bootstrap se muestre correctamente */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
    display: none !important;
    overflow: hidden !important;
    outline: 0 !important;
}

.modal.show {
    display: block !important;
}

.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9998 !important;
    background-color: rgba(0, 0, 0, 0.9) !important; /* Fondo más oscuro */
}

.modal-dialog {
    position: relative !important;
    width: auto !important;
    max-width: 400px !important; /* Tamaño normal */
    margin: 1.75rem auto !important; /* Centrar horizontalmente */
    pointer-events: none !important;
}

.modal-dialog-centered {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 1rem) !important;
    justify-content: center !important;
}

.modal-content {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    pointer-events: auto !important;
    background-color: #000000 !important; /* Fondo negro puro */
    background-clip: padding-box !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important; /* Borde dorado sutil */
    border-radius: 0.5rem !important;
    outline: 0 !important;
    max-width: 400px !important; /* Tamaño normal */
    margin: 0 auto !important;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),  /* Brillo dorado exterior */
        0 0 40px rgba(255, 215, 0, 0.4),  /* Brillo dorado medio */
        0 0 60px rgba(255, 215, 0, 0.2),  /* Brillo dorado lejano */
        inset 0 0 20px rgba(255, 215, 0, 0.1) !important; /* Brillo dorado interior */
}

.modal.fade .modal-dialog {
    transform: translate(0, -50px) !important;
    transition: transform 0.3s ease-out !important;
}

.modal.show .modal-dialog {
    transform: none !important;
}

/* Estilos adicionales para asegurar centrado perfecto */
.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal.show .modal-dialog {
    margin: 0 auto !important;
    transform: none !important;
}

/* Responsive para modal en móviles */
@media (max-width: 576px) {
    .modal-dialog {
        max-width: 350px !important; /* Tamaño adecuado para móviles */
        margin: 1rem auto !important;
    }
    
    .modal-content {
        max-width: 350px !important; /* Tamaño adecuado para móviles */
    }
    
    .site-modal-logo {
        width: 280px !important; /* Aumentado de 220px a 280px en móviles */
        max-width: 90% !important; /* Casi todo el ancho del modal */
    }
    
    .site-modal-body {
        padding: 1.5rem !important;
    }
    
    .site-modal-title {
        font-size: 1rem !important;
    }
    
    .site-modal-text {
        font-size: 0.9rem !important;
    }
    
    .site-modal-ok {
        padding: 0.5rem 2rem !important;
        font-size: 0.9rem !important;
    }
}

/* Responsive para celulares */
@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
        padding: 0 10px;
        overflow-x: hidden;
    }
    
    html {
        overflow-x: hidden;
    }
    
    .subtle-nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
        width: 100%;
    }
    
    .main {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .main-logo {
        max-width: 200px;
        width: 100%;
        height: auto;
    }
    
    h1 {
        font-size: 2.5rem;
        margin: 0 0 2rem 0;
        padding: 0 10px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .project-card {
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .project-info {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .project-info h3 {
        font-size: 1.1rem;
        word-wrap: break-word;
    }
    
    .project-info p {
        font-size: 0.9rem;
        word-wrap: break-word;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .project-link {
        text-align: center;
        padding: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .social-icons {
        flex-wrap: wrap;
        gap: 1rem;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .social-icon {
        font-size: 1.5rem;
    }
    
    .site-modal-logo {
        width: 180px;
        max-width: 80%;
    }
    
    .site-modal-body {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .site-modal-title {
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .site-modal-text {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    .tech-icons {
        gap: 1rem;
        flex-wrap: wrap;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .tech-item i {
        font-size: 2rem;
    }
    
    .tech-item span {
        font-size: 0.8rem;
    }
    
    .welcome-text {
        padding: 0 10px;
        word-wrap: break-word;
    }
    
    .quote-author {
        padding: 0 10px;
        word-wrap: break-word;
    }
    
    .about-text {
        padding: 0 10px;
        word-wrap: break-word;
    }
    
    .contact-info {
        padding: 0 10px;
        word-wrap: break-word;
    }
    
    .contact-info p {
        flex-direction: column;
        align-items: center;
        text-align: center;
        word-wrap: break-word;
    }
    
    footer {
        padding: 2rem 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer-text {
        padding: 0 10px;
        word-wrap: break-word;
    }
}

/* Contador de visitas */
.visit-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(184, 134, 11, 0.9);
    color: #FFD700;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.visit-counter:hover {
    background: rgba(255, 215, 0, 0.95);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.visit-counter .counter-label {
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visit-counter .counter-number {
    font-size: 14px;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.visit-counter:hover .counter-number {
    color: #000;
    text-shadow: none;
}

@media (max-width: 480px) {
    .main-logo {
        max-width: 150px;
    }
    
    .visit-counter {
        top: 10px;
        right: 10px;
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .visit-counter .counter-number {
        font-size: 12px;
    }
}
    
    h1 {
        font-size: 2rem;
    }
    
    .project-info h3 {
        font-size: 1rem;
    }
    
    .project-info p {
        font-size: 0.85rem;
    }
    
    .site-modal-logo {
        width: 120px;
    }
    
    .site-modal-ok {
        padding: 0.5rem 2rem;
        font-size: 0.9rem;
    }
}

.social-icons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    font-size: 2rem;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #B8860B;
}

.social-icon:hover {
    transform: scale(1.2);
    color: #FFD700;
    filter: brightness(1.3);
}

.social-label {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #aaa;
}

.contact {
    margin-top: 2rem;
    font-size: 1rem;
    color: #999;
}

.footer-text {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}
