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

:root {
    --bg-primary: #f5f0e8;
    --bg-secondary: #ebe4d8;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --accent: #c9a96e;
    --accent-dark: #8b7355;
    --white: #ffffff;
    --black: #0a0a0a;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* Dark Mode */
body.dark-mode {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent: #d4af6e;
    --accent-dark: #c9a96e;
    --white: #0a0a0a;
    --black: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    width: 50px;
    height: 26px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.dark-mode-toggle:hover {
    border-color: var(--accent-dark);
}

.dark-mode-toggle::before {
    content: '☀️';
    font-size: 12px;
    position: absolute;
    left: 4px;
    transition: all 0.3s ease;
}

.dark-mode-toggle::after {
    content: '🌙';
    font-size: 12px;
    position: absolute;
    right: 4px;
    transition: all 0.3s ease;
}

.dark-mode-toggle .toggle-ball {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    left: 4px;
    transition: all 0.3s ease;
    z-index: 1;
}

body.dark-mode .dark-mode-toggle .toggle-ball {
    left: calc(100% - 22px);
}

body.dark-mode .dark-mode-toggle {
    background: #2a2a2a;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 8px;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 9px;
    letter-spacing: 4px;
    color: var(--accent-dark);
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-primary);
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--accent-dark);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    padding: 40px 0;
}

.hero-subtitle {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--accent-dark);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 90px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 3px;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 25px;
}

.hero-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 380px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-primary i {
    font-size: 10px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent);
    margin-top: 40px;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: 600px;
    object-fit: cover;
    filter: grayscale(30%);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    opacity: 0.3;
    z-index: -1;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-icon {
    width: 40px;
    height: 60px;
    border: 2px solid var(--accent);
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    animation: bounce 2s infinite;
}

.scroll-icon i {
    font-size: 12px;
    color: var(--accent-dark);
}

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

.scroll-indicator span {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--accent-dark);
    font-weight: 500;
}

/* Floating Contact */
.floating-contact {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.contact-btn {
    width: 60px;
    height: 60px;
    background: var(--black);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-btn span {
    font-size: 7px;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-btn:hover {
    transform: scale(1.1);
    background: var(--accent-dark);
}

.contact-btn.whatsapp {
    background: #25d366;
}

.contact-btn.whatsapp:hover {
    background: #128c7e;
}

.contact-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.contact-btn.instagram:hover {
    opacity: 0.9;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: var(--bg-primary);
}

.section-subtitle {
    font-family: var(--font-display);
    font-size: 32px;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.section-divider {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.section-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 50px;
}

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

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/5;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-overlay i {
    font-size: 30px;
    color: var(--accent);
}

.portfolio-overlay span {
    color: var(--white);
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 600;
}

.portfolio .btn-outline {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* Visit Section */
.visit {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.visit .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.visit-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.visit-map iframe {
    width: 100%;
    height: 400px;
    filter: grayscale(30%) sepia(20%);
}

.visit-subtitle {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--accent-dark);
    margin-bottom: 15px;
    font-weight: 500;
}

.visit-title {
    font-family: var(--font-display);
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.visit-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 35px;
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 35px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    font-size: 14px;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 50px 0 30px;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.footer-logo .logo-text {
    text-align: left;
}

.footer-logo .logo-title {
    font-size: 24px;
}

.footer-logo .logo-subtitle {
    font-size: 8px;
    letter-spacing: 3px;
}

.footer-logo .site-logo-footer {
    max-width: 140px;
    max-height: 55px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--white);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 20px;
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-text {
        margin: 0 auto 35px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .visit .container {
        grid-template-columns: 1fr;
    }

    .floating-contact {
        right: 10px;
    }

    .contact-btn {
        width: 50px;
        height: 50px;
    }

    .contact-btn i {
        font-size: 16px;
    }

    .contact-btn span {
        font-size: 6px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px var(--shadow-color);
    }

    body.dark-mode .nav {
        background: #0f0f0f;
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .site-logo {
        max-width: 180px;
        max-height: 70px;
        margin-left: -15px;
        margin-top: 8px;
    }

    .dark-mode-toggle {
        width: 44px;
        height: 24px;
    }

    .dark-mode-toggle .toggle-ball {
        width: 16px;
        height: 16px;
    }

    body.dark-mode .dark-mode-toggle .toggle-ball {
        left: calc(100% - 20px);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-image img {
        height: 400px;
    }

    .scroll-indicator {
        display: none;
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .section-subtitle {
        font-size: 24px;
    }

    .visit-title {
        font-size: 32px;
    }

    .visit-map iframe {
        height: 300px;
    }

    .floating-contact {
        right: 5px;
        gap: 5px;
    }

    .contact-btn {
        width: 45px;
        height: 45px;
        border-radius: 8px;
    }

    .contact-btn i {
        font-size: 14px;
    }

    .contact-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-logo {
        max-width: 160px;
        max-height: 60px;
        margin-left: -12px;
        margin-top: 5px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .section-subtitle {
        font-size: 22px;
    }

    .visit-title {
        font-size: 28px;
    }

    .floating-contact {
        display: none;
    }
}

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

.hero-content {
    animation: fadeIn 1s ease;
}

.hero-image {
    animation: fadeIn 1s ease 0.3s both;
}

/* Site Logo */
.site-logo {
    max-width: 220px;
    max-height: 85px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    margin-left: -25px;
    margin-top: 12px;
}

.site-logo:hover {
    transform: scale(1.05);
}

.site-logo-footer {
    max-width: 160px;
    max-height: 65px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Smooth scroll offset for fixed header */
section[id] {
    scroll-margin-top: 80px;
}

/* Dark Mode Additional Styles */
body.dark-mode .header {
    background: rgba(15, 15, 15, 0.95);
}

body.dark-mode .nav {
    background: #0f0f0f;
}

body.dark-mode .portfolio-overlay {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-mode .contact-btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

body.dark-mode .visit-map {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .info-item i {
    background: #2a2a2a;
}

body.dark-mode .site-logo {
    filter: brightness(1.2);
}

body.dark-mode .site-logo-footer {
    filter: brightness(1.2);
}

body.dark-mode .logo-icon svg circle,
body.dark-mode .logo-icon svg path {
    stroke: var(--accent);
}

body.dark-mode .footer-social a {
    border-color: var(--accent);
}

body.dark-mode .scroll-icon {
    border-color: var(--accent);
}

body.dark-mode .scroll-icon i {
    color: var(--accent);
}

body.dark-mode .hero-image::before {
    border-color: var(--accent);
}

/* Portfolio CTA Popup */
.portfolio-cta {
    margin-top: 50px;
}

.cta-popup {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border: 2px solid var(--accent);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.cta-popup-inner {
    padding: 50px 30px;
    text-align: center;
    position: relative;
}

.cta-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
    line-height: 1;
    z-index: 2;
}

.cta-close:hover {
    color: var(--accent);
}

.cta-subtitle {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--accent-dark);
    margin-bottom: 12px;
    font-weight: 500;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 36px;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.cta-divider {
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 15px;
}

.cta-text {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
    text-decoration: none;
}

.cta-whatsapp {
    background: #25d366;
    color: #fff;
    border-radius: 8px;
}

.cta-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.cta-phone {
    background: var(--black);
    color: var(--white);
    border-radius: 8px;
}

.cta-phone:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.cta-btn i {
    font-size: 16px;
}

@media (max-width: 480px) {
    .cta-title {
        font-size: 28px;
    }
    .cta-popup-inner {
        padding: 35px 20px;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
}

body.dark-mode .cta-popup {
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .cta-phone {
    background: var(--accent-dark);
    color: var(--bg-primary);
}
