/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: #0a0a0a;
    color: #f0f0f0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    color: #f0f0f0;
}

.section-title span {
    color: #c79a63;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Animaciones base */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.animate-title {
    animation: slideUp 1s ease-out forwards;
}

.animate-subtitle {
    animation: slideUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-left {
    animation: slideLeft 1s ease-out forwards;
}

.animate-right {
    animation: slideRight 1s ease-out forwards;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #f0f0f0;
    text-decoration: none;
    display: flex;
    height: 100px;
    width: fit-content;
}

.logo span {
    color: #c79a63;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #c79a63;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c79a63;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.social-nav {
    display: flex;
    gap: 15px;
}

.social-nav a {
    font-size: 1.2rem;
}

.social-nav a::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #f0f0f0;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/img/fondoo.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(199, 154, 99, 0.1) 0%, rgba(10, 10, 10, 0.9) 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f0f0f0;
    opacity: 0;
}

.hero-title span {
    color: #c79a63;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 40px;
    opacity: 0;
}

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: #c79a63;
    border: 2px solid #c79a63;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #c79a63;
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-hero:hover {
    color: #0a0a0a;
}

.btn-hero:hover::before {
    left: 0;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #f0f0f0;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sección Sobre Mí */
.sobre-mi-content {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 60px;
}

.sobre-mi-img {
    flex: 1;
    opacity: 0;
}

.img-frame {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.img-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid #c79a63;
    z-index: 1;
    border-radius: 5px;
    pointer-events: none;
}

.sobre-mi-img img {
    width: 600px;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.sobre-mi-img:hover img {
    transform: scale(1.05);
}

.sobre-mi-text {
    flex: 1;
    opacity: 0;
}

.sobre-mi-text h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.sobre-mi-text p {
    margin-bottom: 20px;
    color: #ccc;
    font-size: 1.1rem;
}

.especialidades {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.especialidad {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(199, 154, 99, 0.1);
    transition: transform 0.3s ease;
    width: 30%;
}

.especialidad:hover {
    transform: translateY(-10px);
}

.especialidad i {
    font-size: 2.5rem;
    color: #c79a63;
    margin-bottom: 15px;
}

.especialidad h4 {
    font-size: 1.2rem;
    color: #f0f0f0;
}

/* Sección Trabajos */
.trabajos {
    background-color: #111;
}

.filtros {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filtro-btn {
    padding: 10px 25px;
    background-color: transparent;
    color: #f0f0f0;
    border: 1px solid #333;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filtro-btn:hover, .filtro-btn.active {
    background-color: #c79a63;
    color: #0a0a0a;
    border-color: #c79a63;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.trabajo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.trabajo-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.trabajo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.trabajo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 10, 10, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.trabajo-item:hover .trabajo-overlay {
    opacity: 1;
}

.trabajo-item:hover .trabajo-img {
    transform: scale(1.1);
}

.trabajo-categoria {
    display: inline-block;
    background-color: #c79a63;
    color: #0a0a0a;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start;
}

.trabajo-titulo {
    font-size: 1.3rem;
    color: #f0f0f0;
    font-weight: 600;
}

.btn-ver-mas {
    display: inline-block;
    padding: 15px 40px;
    background-color: #c79a63;
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 2px solid #c79a63;
}

.btn-ver-mas:hover {
    background-color: transparent;
    color: #c79a63;
}

.ver-mas-container {
    text-align: center;
}

/* Sección Contacto */
.contacto-content {
    display: flex;
    gap: 60px;
    margin-top: 60px;
}

.contacto-info, .contacto-form {
    flex: 1;
}

.contacto-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.contacto-info p {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contacto-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contacto-item i {
    font-size: 1.5rem;
    color: #c79a63;
    margin-right: 15px;
    width: 30px;
}

.contacto-item h4 {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin-bottom: 5px;
}

.contacto-item p {
    color: #aaa;
    margin: 0;
}

.horarios {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.horarios h4 {
    font-size: 1.3rem;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.horarios p {
    color: #aaa;
    margin-bottom: 10px;
}

.redes-sociales {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    text-decoration: none;
}

.red-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #222;
    border-radius: 50%;
    color: #f0f0f0;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.red-social:hover {
    background-color: #c79a63;
    color: #0a0a0a;
    transform: translateY(-5px);
}

.contacto-form {
    background-color: #111;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 5px;
    color: #f0f0f0;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #c79a63;
}

.form-group textarea {
    resize: vertical;
}

.btn-form {
    width: 100%;
    padding: 15px;
    background-color: #c79a63;
    color: #0a0a0a;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-form:hover {
    background-color: #b38952;
}

.mensaje-exito {
    display: none;
    text-align: center;
    padding: 20px;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 5px;
    margin-top: 20px;
    border-left: 4px solid #28a745;
}

.mensaje-exito i {
    font-size: 2.5rem;
    color: #28a745;
    margin-bottom: 15px;
}

.mensaje-exito p {
    color: #28a745;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #050505;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo a {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #f0f0f0;
    text-decoration: none;
}

.footer-logo span {
    color: #c79a63;
}

.footer-logo p {
    color: #aaa;
    margin-top: 15px;
    max-width: 300px;
}

.footer-links h4, .footer-redes h4 {
    font-size: 1.3rem;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #c79a63;
}

.redes-footer {
    display: flex;
    gap: 15px;
}

.redes-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #222;
    border-radius: 50%;
    color: #f0f0f0;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.redes-footer a:hover {
    background-color: #c79a63;
    color: #0a0a0a;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    background-color: #111;
    border-radius: 10px;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #f0f0f0;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
}

.close-modal:hover {
    color: #c79a63;
    background-color: rgba(199, 154, 99, 0.2);
    transform: scale(1.1);
}

.modal-img-container {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #050505;
}

.modal-info {
    padding: 30px;
    border-top: 1px solid #222;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.modal-desc {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Para dispositivos móviles */
@media (max-width: 768px) {
    .modal-content {
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-img-container {
        height: 50vh;
        min-height: 300px;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-desc {
        font-size: 1rem;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }
        .sobre-mi-img img {
        width: 100%;
        max-width: 100%;
    }
}

/* Asegurar que el body no tenga scroll cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.form-group select {
    width: 100%;
    padding: 15px;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 5px;
    color: #f0f0f0;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c79a63'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.form-group select:focus {
    outline: none;
    border-color: #c79a63;
}

.form-group select option {
    background-color: #222;
    color: #f0f0f0;
}

/* Botón con spinner */
.btn-form {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 52px;
}

.btn-text {
    transition: opacity 0.3s ease;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Mensaje de error */
.mensaje-error {
    text-align: center;
    padding: 20px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 5px;
    margin-top: 20px;
    border-left: 4px solid #dc3545;
}

.mensaje-error i {
    font-size: 2.5rem;
    color: #dc3545;
    margin-bottom: 15px;
}

.mensaje-error p {
    color: #dc3545;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .sobre-mi-content, .contacto-content {
        flex-direction: column;
    }
    
    .especialidades {
        flex-direction: column;
        gap: 20px;
    }
    
    .especialidad {
        width: 100%;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #0a0a0a;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.5s ease;
        gap: 30px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .social-nav {
        margin-top: 30px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .galeria {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .sobre-mi-text h3, .contacto-info h3 {
        font-size: 1.8rem;
    }
    
    .contacto-form {
        padding: 25px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}
/* Agregar al final de style.css */

.error-detail {
    font-size: 0.9rem;
    color: #ff9999;
    margin-top: 10px;
    font-weight: normal;
}

/* Mejorar mensajes de error */
.mensaje-error {
    background-color: rgba(220, 53, 69, 0.15);
    border: 1px solid #dc3545;
}

/* Para cuando Supabase no está configurado */
.mensaje-advertencia {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 193, 7, 0.15);
    border-radius: 5px;
    margin-top: 20px;
    border-left: 4px solid #ffc107;
    color: #ffc107;
}
/* =================== CORRECCIONES CRÍTICAS PARA MODAL =================== */

/* Asegurar que el modal tenga la posición correcta */
.modal {
    display: none !important; /* Oculto por defecto */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.98) !important;
    z-index: 9999 !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    overflow: auto !important;
    backdrop-filter: blur(10px) !important;
}

/* Cuando se muestra el modal */
.modal.active,
.modal[style*="display: flex"] {
    display: flex !important;
}

/* Contenedor del modal */
.modal-content {
    position: relative !important;
    max-width: 900px !important;
    width: 100% !important;
    max-height: 90vh !important;
    background-color: #111 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    border: 2px solid #c79a63 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
    animation: modalEntrada 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Botón cerrar - siempre visible y funcional */
.close-modal {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    color: #f0f0f0 !important;
    font-size: 2.5rem !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    background: rgba(10, 10, 10, 0.8) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    border: 2px solid #c79a63 !important;
    font-weight: bold !important;
}

.close-modal:hover {
    color: #c79a63 !important;
    background: rgba(199, 154, 99, 0.2) !important;
    transform: rotate(90deg) scale(1.1) !important;
}

/* Imagen del modal */
.modal-img-container {
    width: 100% !important;
    height: 60vh !important;
    min-height: 400px !important;
    overflow: hidden !important;
    background: #050505 !important;
}

.modal-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #050505 !important;
}

/* Información del modal */
.modal-info {
    padding: 30px !important;
    background: #111 !important;
    border-top: 2px solid #222 !important;
}

.modal-title {
    font-family: 'Cinzel', serif !important;
    font-size: 2.2rem !important;
    color: #f0f0f0 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
}

.modal-desc {
    color: #ccc !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

/* Cuando el modal está abierto - BLOQUEAR SCROLL DEL BODY */
body.modal-abierto,
body[style*="overflow: hidden"] {
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
    position: fixed !important;
}

/* Animación de entrada */
@keyframes modalEntrada {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Para móviles */
@media (max-width: 768px) {
    .modal-content {
        max-height: 95vh !important;
        margin: 10px !important;
        border-radius: 10px !important;
    }
    
    .modal-img-container {
        height: 50vh !important;
        min-height: 300px !important;
    }
    
    .modal-info {
        padding: 20px !important;
    }
    
    .modal-title {
        font-size: 1.8rem !important;
    }
    
    .modal-desc {
        font-size: 1rem !important;
    }
    
    .close-modal {
        top: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 2rem !important;
    }
}

/* =================== GARANTIZAR QUE LOS CLICS FUNCIONEN =================== */
/* Asegurar que todos los elementos clicables sean realmente clicables */
.trabajo-item,
.close-modal,
.filtro-btn,
.btn-hero,
.btn-form,
.red-social,
.nav-menu a,
.hamburger {
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
}

/* Prevenir problemas de z-index */
.trabajo-item {
    position: relative !important;
    z-index: 1 !important;
}

.trabajo-item:hover {
    z-index: 2 !important;
}

/* Asegurar que el modal esté sobre TODO */
.modal {
    z-index: 99999 !important;
}

.modal-content {
    z-index: 100000 !important;
}

.close-modal {
    z-index: 100001 !important;
}
