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

body {
    background-color: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

.logo {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-desktop ul li {
    margin-left: 20px; 
}

.nav-desktop ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-desktop ul li a:hover {
    color: #F2EED8;
}


.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 250px;
    height: 100%;
    background-color: #111;
    z-index: 2000;
    transition: 0.5s;
    padding: 60px 30px;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: #F2EED8;
}

.sidebar-links {
    list-style: none;
    margin-top: 40px;
}

.sidebar-links li {
    margin-bottom: 25px;
}

.sidebar-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}



/* Hero Section Principal */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

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

.hero-content h1 {
    font-size: 4rem;
    letter-spacing: 10px;
    margin-top: 20px;
}

.main-logo {
    width: 150px;
}

/* Proyectos */
.project-item {
    position: relative;
    height: 80vh; 
    width: 100%;
    overflow: hidden;
    border-bottom: 2px solid #111;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

/* Capa de texto sobre el video */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: flex-end; 
    padding: 60px;
    text-decoration: none;
    color: white;
    transition: background 0.3s;
}

.project-overlay:hover {
    background: rgba(0,0,0,0.1);
}

.project-text span {
    font-size: 1rem;
    font-weight: 300;
    display: block;
    margin-bottom: 5px;
}

.project-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Sección de Contacto */
.contact-section {
    position: relative; 
    background-color: #1a1a1a; 
    min-height: 60vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    overflow: hidden;
    color: #F2EED8; 
}

.contact-content {
    z-index: 2;
}

.contact-subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-family: sans-serif;
}

.contact-section h2 {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1;
}

.contact-email {
    display: block;
    margin-top: 20px;
    font-size: 1.5rem;
    color: #F2EED8;
    text-decoration: none; 
    transition: opacity 0.3s ease;
}

.contact-email:hover {
    opacity: 0.7; 
}

/* Posicionamiento del perro */
.contact-dog {
    position: absolute;
    bottom: -20px; 
    right: 50px;
    width: 250px;
    opacity: 0.9;
    z-index: 1;
}

/* Galeria especifica de las empresas*/
.detail-container {
    padding-top: 80px; 
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.detail-header {
    text-align: center;
    margin-bottom: 50px;
}

.detail-header h1 {
    font-size: 3rem;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.detail-header p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #ccc;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 0;
    width: 100%;
}

.gallery-item {
    position: relative;
    grid-column: span 2;
    overflow: hidden;
    background: #000;
}

.v-2 { /* 2 videos en la fila */
    grid-column: span 3;
}

 
.v-3 {  /* 3 videos en la fila */
    grid-column: span 2;
}

.gallery-item video,
.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.gallery-item:hover video {
    transform: scale(1.03); 
}

/* Información de la empresa (Primera rejilla) */
.client-info-card {
    background-color: #1a1a1a; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}


.logo-circle {
    width: 180px;
    height: 180px;
    background-color: #0000;
    border-radius: 50%;
    border: 8px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-circle img.small-logo {
    width: 115%;
    height: 115%;
    object-fit: cover;
}

.client-name {
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.instagram-link {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: underline;
    font-size: 1rem;
}

.ig-icon {
    width: 18px;
    margin-right: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*La vaina de youtube de Educa */ 
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    width: 100%;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.educa-theme {
    background-color: #000; 
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.social-item {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.social-item img {
    width: 20px;
    margin-right: 10px;
    height: auto !important;
}

/* Box de Contacto */
.contact-form-section {
    background-color: #000;
    padding: 100px 5%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    gap: 50px;
    align-items: center;
}

/* Formulario */
.form-wrapper {
    flex: 1;
}

.form-wrapper h2 {
    font-size: 3rem;
    color: #F2EED8; /* Color crema de la marca */
    margin-bottom: 30px;
    font-weight: 900;
}

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

.input-group label {
    display: block;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    font-family: inherit;
    border-radius: 4px;
    outline: none;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: #F2EED8;
}

.btn-submit {
    background-color: #F2EED8;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 2px;
    transition: 0.3s ease;
}

.btn-submit:hover {
    background-color: #fff;
    transform: translateY(-3px);
}

.dog-branding {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-dog {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(242, 238, 216, 0.2));
}


/* RESPONSIVENESS */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .form-wrapper h2 {
        font-size: 2rem;
    }

    .contact-section h2 {
        font-size: 2rem; 
    }
    
    .contact-email {
        font-size: 1.1rem;
    }
    
    .contact-dog {
        width: 150px;
        right: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .v-2, .v-3 {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    .nav-desktop {
        display: none; 
    }

    .menu-toggle {
        display: flex;
    }

    .navbar {
        padding: 20px 30px;
    }
}
