
:root {
    --color-bg: #eeeeeedc;
    --color-text: #333;
    --color-text-secondary: #555;
    --color-accent: #c5a47e;
    --color-accent-hover: #a98760;
    --color-nav-bg: rgba(255, 255, 255, 0.3);
    --color-frame-bg: rgba(255, 255, 255, 0.2);
    --color-card-bg: #ffffff;
    --color-card-border: #eee;
    --color-footer-bg: #111;
    --color-footer-text: #fff;
}

body.dark-mode {
    --color-bg: #0f172a;
    --color-text: #e5e7eb;
    --color-text-secondary: #9ca3af;
    --color-accent: #f9a66c;
    --color-accent-hover: #d78b50;
    --color-nav-bg: rgba(15, 23, 42, 0.6);
    --color-frame-bg: rgba(17, 24, 39, 0.6);
    --color-card-bg: #111827;
    --color-card-border: rgba(255, 255, 255, 0.1);
    --color-footer-bg: #111827;
    --color-footer-text: #e5e7eb;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}


.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--color-nav-bg);
    backdrop-filter: blur(8px);
    transition: background 0.3s;
}

.logo {
    font-size: 1.5rem;
    color: var(--color-footer-text);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--color-footer-text);
    text-decoration: none;
    font-weight: 300;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 1px;
    background: var(--color-accent);
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

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

  FRAME  
.frame {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 60px 80px;
    backdrop-filter: blur(6px);
    background: var(--color-frame-bg);
    transition: background 0.3s, border-color 0.3s;
}

.frame h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.frame p {
    margin-bottom: 25px;
    font-weight: 300;
}


.btn {
    background: var(--color-accent);
    color: var(--color-footer-text);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s;
}

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


section {
    padding: 80px 10%;
}

  GRID DE SERVICIOS Y PROYECTOS  
.services,
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}


.card {
    border: 1px solid var(--color-card-border);
    background: var(--color-card-bg);
    padding: 20px;
    transition: 0.3s, box-shadow 0.3s;
    border-radius: 12px;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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


.about {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
}


.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: auto;
}

input,
textarea {
    padding: 12px;
    border: 1px solid #ccc;
    width: 100%;
    border-radius: 6px;
    background: var(--color-card-bg);
    color: var(--color-text);
    transition: background 0.3s, color 0.3s;
}


footer {
    text-align: center;
    padding: 20px;
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    transition: background 0.3s, color 0.3s;
}

@media (max-width: 768px) {
    .frame {
        padding: 40px 20px;
    }

    .frame h1 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    header h1 {
        font-size: 2rem;
    }
}