:root {
    --bg: #050505;
    --card: #111111;
    --accent: #a78122;
    --text: #ffffff;
    --text-dim: #a0a0a0;
    --nav-height: 80px;
    --glass: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;

}

/* --- NAVEGACIÓN UNIFICADA --- */
.main-header {
    position: relative;
    width: 100%;
    z-index: 1000;
}

.top-nav {
    height: var(--nav-height);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
}

.logo span {
    color: var(--accent);
}

#menu-check {
    display: none;
}

.menu-hamburger {
    display: none;
    cursor: pointer;
    color: var(--white);
    font-size: 2rem;
}

.nav-container {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.main-menu a {
    color: var(--text);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 50px;
    transition: var(--transition);
}

.main-menu a:hover,
.main-menu a.active {
    background: var(--glass);
    color: var(--accent);
}

/* Submenú */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    padding: 10px 0;
    border-radius: 12px;
    display: none;
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu li {
    list-style: none;
}

.submenu a {
    border-radius: 0;
    padding: 10px 20px;
}

.has-submenu:hover .submenu {
    display: block;
}

/* --- HERO SECTIONS --- */
a {
    text-decoration: none;
}
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero.compact {
    height: 50vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 5, 0.4) 100%);
    z-index: -1;
}

.hero-button {
    background: var(--accent);
    opacity: 0.6;
    color: black;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
}

.hero-content h1 {
    color: var(--text);
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
}

/* --- GRID Y TARJETAS (Servicios) --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 5%;
    
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

.card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(1);
    transition: 0.5s;
}

.service-card:hover .card-img img {
    filter: grayscale(0);
}

.card-body {
    padding: 2rem;
    text-align: center;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -50px auto 1rem;
    position: relative;
    background: var(--card);
}

.icon-box .material-icons {
    color: var(--accent);
}
/*+++++CAJA DE FOTOGRAFIAS SLIDE+++++*/
.slide-container {
    max-width: 1000px;
    position: relative;
    margin: 0;

}
.slide{
    display: none;
}
.numbertext {
    font-size: 20px;
    position: absolute;
    color: var(--bg);
    top: 0;
    padding: 10px 14px;
}
.text {
    position: absolute;
    width: 100%;
    text-align: center;
    color: var(--accent);
    font-size: 1em;
    padding: 15px 12px;
    
}

.prev, .next {
    cursor: pointer;
    justify-content: center;
    position: absolute;
    transform: translateY(50%);
    
    width: auto;
    top: 50%;
    font-size: 18px;
    border: 2px solid black;
    background-color: grey;
    border-radius: 0 5px 5px 0;
    padding: 16px;
    transition: 0.6s ease;
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

/*.slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}*/

.prev:hover, .next:hover {
    background-color: var(--bg);
    color: var(--text-dim);
}
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 2px 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.active, .dot:hover {
    background-color: #717171;
}


/* --- CONTACTO --- */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}
 

/*estrucyura flexbox*/
.form-contacto {
    margin: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.grupo-input {
    position: relative;
    display: flex;
    width: 100%;
    gap: 20px;
    }


    /*estilo input*/
    input,
    textarea {
        width: 100%;
        padding: 25px 20px 10px 20px;
        background-color: rgb(108, 98, 98);
        border: 5px solid transparent;
        border-radius: 8px;
        color: black;
        font-size: 1rem;
        transition: 0.3s ease;
        /*transicion suave para focus*/
    }

    textarea {
        min-height: 150px;
        resize: vertical;
    }

    input:focus,
    textarea:focus {
        outline: none;
        /*no salgan bordes*/
        border-color: var(--accent);
        background-color: gray;
    }

    .grupo-input label {
        position: absolute;
        left: 20px;
        top: 20px;
        color: white;
        pointer-events: none;
        transition: 0.2s ease all;
    }

    input:focus~label,
    /*para que no se solapen los titulos*/
    textarea:not(:placeholder-shown)~label,
    input:not(:placeholder-shown)~label,
    textarea:focus~label {
        top: 5px;
        font-size: 1rem;
        color: rgb(127, 174, 255);
    }

    .boton-formulario {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    .btn-enviar {
        padding: 10px 15px;
        background-color: var(--accent);
        color: white;
        border: none;
        border-radius: 30px;
        font-size: 30px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    input:not(:focus):not(:placeholder-shown):invalid,
    textarea:not(:focus):not(:placeholder-shown):invalid {
        border-color: red;
    }

    input:not(:focus):not(:placeholder-shown):valid,
    textarea:not(:focus):not(:placeholder-shown):valid {
        border-color:  rgb(127, 174, 255);
    }

    input:not(:focus):not(:placeholder-shown):invalid~label,
    textarea:not(:focus):not(:placeholder-shown):invalid~label {
        color: red;
    }

    /* --- MOBILE --- */
    @media (max-width: 768px) {
        .menu-hamburger {
            display: block;
        }

        .nav-container {
            display: none;
            position: fixed;
            top: var(--nav-height);
            left: 0;
            width: 100%;
            background: var(--bg);
            padding: 2rem;
        }

        #menu-check:checked~.nav-container {
            display: block;
        }

        .main-menu {
            flex-direction: column;
            text-align: center;
        }
    }