/* Editable Items */
.editable-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.editable-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.editable-item-form {
    padding: 1rem;
}

.editable-item-form .form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: end;
}

.editable-item-form .form-field {
    margin-bottom: 1rem;
}

.editable-item-form .form-field:last-child {
    margin-bottom: 0;
}

.editable-item-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #2c2c2c;
    font-size: 0.85rem;
}

.auto-save-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auto-save-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.auto-save-input:hover {
    border-color: #999;
}

.small-input {
    max-width: 80px;
}

.auto-save-input[type="textarea"] {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

/* Checkbox styling */
.checkbox-row {
    margin-bottom: 0.5rem !important;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400 !important;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

.checkbox-label span {
    font-size: 0.9rem;
}

/* Item overlay actions */
.item-overlay-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.current-item-preview:hover .item-overlay-actions {
    opacity: 1;
}

.btn-delete-small,
.btn-move,
.btn-duplicate {
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-delete-small:hover {
    background: #dc3545;
}

.btn-move:hover {
    background: #007bff;
}

.btn-duplicate:hover {
    background: #28a745;
}

/* Item badges */
.item-badges {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    display: flex;
    gap: 0.25rem;
}

.featured-badge,
.video-badge {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 3px;
    font-weight: 500;
}

.featured-badge {
    background: rgba(255,165,0,0.9);
}

.video-badge {
    background: rgba(231,76,60,0.9);
}

/* Item meta */
.item-meta {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.item-meta small {
    color: #999;
    font-size: 0.75rem;
}

/* Save indicator */
.save-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    z-index: 10001;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Updated current items grids for better spacing */
.current-gallery-grid,
.current-clients-grid,
.current-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Better form styling */
.editable-item-form .form-field select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.3s ease;
}

.editable-item-form .form-field select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.editable-item-form .form-field textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.3s ease;
}

.editable-item-form .form-field textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Admin section improvements */
.admin-section {
    margin: 0;
    padding: 2rem;
    border-bottom: 1px solid #eee;
    background: #fafbfc;
}

.admin-section:nth-child(even) {
    background: white;
}

.admin-section:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.current-items {
    margin-bottom: 2rem;
}

.current-items h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #495057;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-items h4::before {
    content: '📋';
    font-size: 1rem;
}

.add-new-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #495057;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-new-section h4::before {
    content: '➕';
    font-size: 1rem;
}

/* Button improvements */
.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .current-gallery-grid,
    .current-clients-grid,
    .current-team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .editable-item-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .item-overlay-actions {
        opacity: 1;
        background: rgba(0,0,0,0.5);
        padding: 0.25rem;
        border-radius: 4px;
    }
    
    .admin-section {
        padding: 1rem;
    }
    
    .save-indicator {
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ==================== MAIN WEBSITE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide elements when not in admin mode */
body:not(.admin-mode) .admin-only {
    display: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background: #ffffff;
    color: #2c2c2c;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    /* background: rgba(255, 255, 255, 0.15); */
    /* backdrop-filter: blur(20px); */
    z-index: 1000;
    padding: 0;
    background-color: transparent;
    transition: all 0.3s ease;
    
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.05); */
}

.header.scrolled {
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
            
        }

.nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #666;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #2c2c2c;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section with Video */
.hero {
    height: 100vh;
    position: relative;
    
    
    overflow: hidden;
    
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-content {
    margin: 0 auto;
    color: white;
    
    
    padding: 0 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;

  width: 100%; /* Ocupa todo el ancho disponible */
  height: auto; /* La altura se ajusta al contenido */
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); 
  margin-bottom: 33px;
    
}

.hero h1,.hero p, .hero-cta {
  display: block;
  margin-bottom: 0px;
}
.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
    text-align: left;
  
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.6;

}

.hero-cta {
    display: inline-block;
    background: white;
    color: #2c2c2c;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -1px;
    color: #2c2c2c;
    text-align: center;
}

/* Works Section */
.works-section {
    padding: 5rem 0;
}

/* NUEVO SISTEMA MASONRY VERDADERO - JavaScript controlado */
.masonry-gallery {
    position: relative;
    margin-bottom: 4rem;
}

.gallery-item {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
    /* SIN border-radius para items destacados */
}

/* Featured items mantienen sus bordes cuadrados */
.gallery-item.featured {
    border-radius: 0;
}

/* Items normales pueden tener bordes ligeros */
.gallery-item:not(.featured) {
    border-radius: 4px;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
    /* SIN filtros de saturación */
}

.gallery-item video {
    object-fit: cover;
}

/* Efecto hover sutil */
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 10;
}

.gallery-item:hover img,
.gallery-item:hover video {
    /* Solo un ligero brillo en hover */
    filter: brightness(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    letter-spacing: -0.25px;
}

.gallery-category {
    font-size: 0.8rem;
    font-weight: 300;
    opacity: 0.9;
}

.gallery-description {
    font-size: 0.8rem;
    font-weight: 300;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.video-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* Clients Section - LOGOS 40% MÁS GRANDES */
.clients-section {
    padding: 5rem 0;
    background: white;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); /* Aumentado de 150px a 210px (40% más) */
    gap: 2.8rem; /* Aumentado de 2rem a 2.8rem (40% más) */
    align-items: center;
}

.client-logo {
    padding: 1.4rem; /* Aumentado de 1rem a 1.4rem (40% más) */
    transition: all 0.3s ease;
    opacity: 0.6;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.client-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.client-logo a {
    display: block;
    text-decoration: none;
    text-align: center;
}

.client-logo img {
    width: 100%;
    height: auto;
    max-height: 84px; /* Aumentado de 60px a 84px (40% más) */
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    margin-bottom: 0.7rem; /* Aumentado de 0.5rem a 0.7rem (40% más) */
}

.client-logo:hover img {
    filter: grayscale(0%);
}

.client-name {
    font-size: 0.9rem; /* Aumentado de 0.8rem a 0.9rem */
    color: #666;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-logo:hover .client-name {
    opacity: 1;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: #fafafa;
}

.about-content {
    text-align: center;
    margin-bottom: 4rem;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 300;
    color: #666;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-section {
    margin-top: 4rem;
}

.team-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

/* TEAM GRID - MISMO ANCHO QUE EL FORMULARIO DE CONTACTO */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Más ancho para que ocupen el mismo espacio que el formulario */
    gap: 3rem; /* Gap más grande */
    max-width: 800px; /* Mismo max-width que el formulario de contacto */
    margin: 0 auto; /* Centrado */
}

.team-member {
    text-align: center;
    background: white;
    padding: 2.5rem; /* Padding más grande */
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.team-photo {
    width: 140px; /* Más grande */
    height: 140px; /* Más grande */
    border-radius: 50%;
    margin: 0 auto 1.5rem; /* Margin más grande */
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #999;
    overflow: hidden;
}

.team-name {
    font-size: 1.2rem; /* Más grande */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 1rem; /* Más grande */
    color: #666;
    font-weight: 300;
}

/* Connect Section */
.connect-section {
    background: #2c2c2c;
    color: white;
    padding: 5rem 0;
}

.connect-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.connect-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.connect-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: #ccc;
    margin-bottom: 3rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #555;
    background: transparent;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.submit-btn {
    background: white;
    color: #2c2c2c;
    border: none;
    padding: 1rem 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-self: center;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
}

.submit-btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
}

/* CONTACT INFO - 4 COLUMNAS COMO ANTES */
.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas explícitas */
    gap: 2rem;
    text-align: left;
    font-size: 0.8rem;
}

.contact-item h4 {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item p {
    color: #ccc;
    font-weight: 300;
}

.instagram-link {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.instagram-link:hover {
    color: #E4405F;
}

.instagram-icon {
    width: 16px;
    height: 16px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo img {
    height: 40px;
    
}

.footer-text p {
    font-size: 0.9rem;
    color: #ccc;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Media Modal */
.media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-media {
    max-width: 90%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-media img,
.modal-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 30px;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.2);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

.modal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    text-align: center;
}

.modal-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Admin Panel */
.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    overflow-y: auto;
}

.admin-content {
    background: white;
    margin: 2rem auto;
    padding: 0;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.admin-header h2 {
    margin: 0;
    font-weight: 600;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.admin-section {
    margin: 0;
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.admin-section:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.admin-section h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #2c2c2c;
    font-size: 1.3rem;
}

/* Button Styles */
.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.btn-close:hover {
    color: #666;
}

/* Current Items Grids */
.current-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.current-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.current-item-preview {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.current-item-preview img,
.current-item-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-in {
    animation: slideIn 0.5s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Masonry responsive será manejado por JavaScript */
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* CONTACT INFO - 2 COLUMNAS EN MOBILE */
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }

    /* TEAM GRID RESPONSIVE */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* CLIENTS GRID RESPONSIVE - Mantienen el tamaño aumentado pero en menos columnas */
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Reducido ligeramente para mobile */
    }

    .admin-content {
        margin: 1rem;
    }

    .admin-section {
        padding: 1rem;
    }
    
    .admin-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .admin-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-nav {
        display: none;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .current-gallery-grid,
    .current-clients-grid,
    .current-team-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }

    /* CONTACT INFO - 1 COLUMNA EN MOBILE MUY PEQUEÑO */
    .contact-info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* CLIENTS - Aún más pequeños en mobile muy pequeño */
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Admin Mode */
body.admin-mode .admin-panel {
    display: block;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2c2c2c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Google Sign-In Modal */
#googleSignInContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    max-width: 400px;
    width: 90%;
}

#googleSignInContainer::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}

#googleSignInContainer h3 {
    margin-bottom: 1rem;
    text-align: center;
    color: #2c2c2c;
}

#googleSignInContainer p {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.g_id_signin {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.mobile-open {
        left: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}