/* ============================================
   Estudio Graciela Mártiri - Estilos Modernos
   ============================================ */

/* ===== CSS Reset & Variables ===== */
:root {
    /* Paleta Minimalismo Nórdico - Verde Salvia + Beige */
    --primary-color: #5F7161;        /* Verde salvia oscuro */
    --secondary-color: #2F3640;      /* Gris carbón */
    --accent-warm: #C8A882;          /* Beige cálido/arena */
    --accent-fresh: #8BA888;         /* Verde claro fresco */
    --background-light: #F5F5F5;     /* Off-white */
    --background-dark: #2F3640;      /* Gris carbón */
    --text-color: #2C2C2C;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    --link-color: #E5E7EB;
    --max-width: 1200px;
    --header-height: 100px;
    --nav-height: 60px;
    --font-main: 'Segoe UI', Tahoma, Arial, sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-dark);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Skip Link (Accesibilidad) ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ===== Header ===== */
.site-header {
    background: url('backup/elementos/celeste01.jpg') repeat-x;
    background-size: auto 100%;
    height: var(--header-height);
    position: relative;
}

.logo-container {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    background: url('backup/elementos/logo.png') no-repeat left center;
    background-size: auto 80%;
    padding-left: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
}

/* ===== Estudio Title ===== */
.studio-title {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.studio-title-text {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.studio-title-text .gramar {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--accent-warm);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.architecture-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.architecture-icon::before,
.architecture-icon::after {
    content: '';
    position: absolute;
    background-color: var(--accent-warm);
    box-shadow: 0 2px 4px rgba(200, 168, 130, 0.3);
}

/* Escuadra arquitectónica */
.architecture-icon::before {
    width: 50px;
    height: 3px;
    transform: rotate(45deg);
    transform-origin: left;
}

.architecture-icon::after {
    width: 3px;
    height: 50px;
    transform: rotate(45deg);
    transform-origin: top;
    top: 0;
    left: 0;
}

@media (max-width: 768px) {
    .site-header {
        height: 80px;
    }
    
    .logo-container {
        background-size: auto 50%;
        background-position: left center;
        justify-content: flex-end;
        padding-right: 15px;
    }
    
    .studio-title {
        gap: 8px;
    }
    
    .studio-title-text {
        font-size: 1.2rem;
        letter-spacing: 1px;
        gap: 6px;
    }
    
    .studio-title-text .gramar {
        font-size: 1.4rem;
        letter-spacing: 3px;
    }
    
    .architecture-icon {
        width: 35px;
        height: 35px;
    }
    
    .architecture-icon::before {
        width: 30px;
    }
    
    .architecture-icon::after {
        height: 30px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .studio-title-text {
        font-size: 1.6rem;
    }
    
    .studio-title-text .gramar {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }
    
    .architecture-icon {
        width: 45px;
        height: 45px;
    }
    
    .architecture-icon::before {
        width: 40px;
    }
    
    .architecture-icon::after {
        height: 40px;
    }
}

/* ===== Navigation ===== */
.main-nav {
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: var(--nav-height);
    flex-wrap: wrap;
    padding: 0 20px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    padding: 15px 25px;
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.95rem;
    text-align: center;
    transition: var(--transition);
    border-radius: 4px;
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--accent-fresh);
    background-color: rgba(139, 168, 136, 0.1);
    outline: 2px solid var(--accent-fresh);
    outline-offset: -2px;
    transform: translateY(-2px);
}

.nav-list a.active {
    background-color: var(--primary-color);
    color: var(--accent-warm);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(95, 113, 97, 0.3);
}

/* Hamburger Menu para móviles */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--link-color);
    color: var(--link-color);
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 5px;
        padding-top: 10px;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list a {
        width: 100%;
    }
}

/* ===== Separator ===== */
.separator {
    height: 11px;
    background: url('backup/elementos/lineaRoll.jpg') repeat-x;
}

/* ===== Main Content ===== */
.main-content {
    background-color: var(--background-light);
    flex: 1;
    padding: 40px 20px;
}

.content-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ===== Section Styles ===== */
.section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.section-content {
    font-size: 1rem;
    line-height: 1.8;
}

.section-content ul {
    list-style-position: inside;
    margin: 20px 0;
}

.section-content li {
    margin-bottom: 30px;
    padding-left: 10px;
}

.section-content li::marker {
    color: var(--primary-color);
}

.section-content p {
    margin-bottom: 15px;
}

/* ===== Project Categories ===== */
.project-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-fresh);
    font-weight: 600;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-warm), transparent);
}

/* ===== Horizontal Gallery (Scroll) ===== */
.gallery-wrapper {
    position: relative;
    padding: 0 50px;
}

.horizontal-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
    scrollbar-width: none; /* Firefox */
}

.horizontal-gallery::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.horizontal-gallery .project-item {
    flex: 0 0 300px;
    min-width: 300px;
    max-width: 300px;
}

/* ===== Gallery Navigation Arrows ===== */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--accent-warm);
    border: 2px solid var(--accent-warm);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(95, 113, 97, 0.3);
}

.gallery-nav:hover {
    background-color: var(--accent-fresh);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 168, 136, 0.4);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-nav.prev {
    left: 0;
}

.gallery-nav.next {
    right: 0;
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-nav:disabled:hover {
    transform: translateY(-50%) scale(1);
}

@media (max-width: 768px) {
    .gallery-wrapper {
        padding: 0 40px;
    }
    
    .horizontal-gallery .project-item {
        flex: 0 0 250px;
        min-width: 250px;
        max-width: 250px;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .gallery-wrapper {
        padding: 0 30px;
    }
    
    .gallery-nav {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* ===== Project Gallery (Grid - para renders adicionales) ===== */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.project-item:hover,
.project-item:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.project-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

/* ===== Professional Content (3 columns) ===== */
.professional-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.professional-column h2 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.professional-column h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin: 20px 0 10px;
}

.professional-column p {
    margin-bottom: 10px;
}

.professional-column ul {
    list-style: none;
}

.professional-column li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.professional-column li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .professional-content {
        grid-template-columns: 1fr;
    }
}

/* ===== WhatsApp Contact ===== */
.whatsapp-contact {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

.whatsapp-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.whatsapp-icon svg {
    filter: drop-shadow(0 4px 6px rgba(37, 211, 102, 0.3));
    transition: transform 0.3s;
}

.whatsapp-icon svg:hover {
    transform: scale(1.1);
}

.whatsapp-number {
    margin: 30px 0;
}

.whatsapp-button {
    display: inline-block;
    padding: 20px 40px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-button .phone-number {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.whatsapp-button .whatsapp-text {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .whatsapp-contact {
        padding: 20px;
    }
    
    .whatsapp-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .whatsapp-button .phone-number {
        font-size: 1.2rem;
    }
}

/* ===== Contact Form ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-fresh);
    box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group .error {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 5px;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-submit:hover,
.btn-submit:focus {
    background-color: var(--accent-fresh);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 168, 136, 0.4);
}

.form-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.form-message.success {
    background-color: #4caf50;
    color: white;
}

.form-message.error {
    background-color: #f44336;
    color: white;
}

/* ===== Footer Separator ===== */
.footer-separator {
    height: 30px;
    background: url('backup/elementos/foother31pxAzul.jpg') repeat-x;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--primary-color);
    color: var(--link-color);
    padding: 30px 20px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--accent-fresh);
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(139, 168, 136, 0.3);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 168, 136, 0.3);
    color: rgba(229, 231, 235, 0.8);
}

@media (max-width: 768px) {
    .footer-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ===== Lightbox Moderno ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    cursor: default;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-fresh);
    text-shadow: 0 0 10px rgba(139, 168, 136, 0.5);
}

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

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== Print Styles ===== */
@media print {
    .main-nav,
    .site-footer,
    .menu-toggle,
    .separator,
    .footer-separator {
        display: none;
    }
    
    body {
        background-color: white;
    }
    
    .main-content {
        background-color: white;
    }
}
