/* ============================
   BRANDNESS 360 - ESTILOS CSS 
   ============================*/

/* == VARIABLES DE COLOR ==*/
:root {
    --color-cream: #F0ECE2;
    --color-teal: #52B5BB;
    --color-coral: #F88884;
    --color-dark: #0A0A0A;
    --color-muted: #E8E4D8;
    
    /* Tipografía */
    --font-serif: 'DM Serif Display', serif;
    --font-body: 'Unna', serif;
}

/* == RESET Y BASE ==*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 300;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========== MENÚ LATERAL FLOTANTE ==========*/
.side-menu {
    position: fixed;
    left: 5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 40;
    pointer-events: none;
}

.menu-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-dark);
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
}

.menu-bullet:hover {
    transform: scale(1.2);
}

.menu-bullet.active {
    height: 20px;
    border-radius: 4px;
    background-color: var(--color-cream);
    border: 2px solid var(--color-dark);
}

.menu-bullet:hover::after {
    opacity: 1;
}



/* En celulares */
@media (max-width: 768px) {
    /* 1. Movemos el menú al borde izquierdo */
    .side-menu {
        left: 1.5rem;
        gap: 0.5rem; 
    }

    /* 2. Reducimos el tamaño de los puntos para que no compitan con el logo */
    .menu-bullet {
        width: 5px;
        height: 5px;
    }

    .menu-bullet.active {
        height: 15px; 
    }
}

/* ========== CONTENIDO PRINCIPAL ==========*/
.main-content {
    width: 100%;
}

.section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-container {
    max-width: 90rem; 
    width: 100%;
    padding: 2rem 8rem; 
    text-align: left;
    margin: 0 auto;
    box-sizing: border-box;
}

/* En tablets y pantallas medianas */
@media (max-width: 1024px) {
    .section-container {
        padding: 2rem 5rem;
    }
}

/* En celulares */
@media (max-width: 768px) {
    .section-container {
        padding: 2rem;
    }
}

/* ========== SECCIÓN HERO ==========*/
.hero-section {
    position: relative; 
    overflow: hidden;
    z-index: 1;        
    background-color: #000; 
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1; 
}
/* para celular */
@media (max-width: 768px) {
    .hero-section {
        position: relative;
        height: 100vh; 
        width: 100%;
        overflow: hidden;
        background-color: #000; 
        z-index: 1;
    }

    .hero-video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        object-fit: cover; 
        transform: translate(-50%, -50%);
        z-index: -1;
        display: block !important; 
    }

    .hero-overlay {
        z-index: 2; 
    }
}

/* --- SECCIÓN HERO / LOGO --- */

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    padding: 0rem; 
    margin-top: 0rem; 
    justify-content: center; 
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo {
    width: 100%;
    max-width: 250px;
    height: auto;
}

/* Tablet y Computador */
@media (min-width: 768px) {
    .hero-section {
        height: 100vh; 
        display: flex;
        align-items: center; 
    }

    .hero-content {
        justify-content: flex-start; 
        padding-left: 12rem;         
    }
    
    .hero-logo {
        max-width: 450px; 
        height: auto;
    }
}

/* Pantallas muy grandes */
@media (min-width: 1200px) {
    .hero-logo {
        max-width: 550px; 
    }
    .hero-content {
        padding-left: 15%; 
    }
}

/* ========== SECCIÓN BRAND PRESENCE ==========*/
.brand-section {
    background-color: white;
    padding: 4rem 4rem;
}

.section-label {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: noe;
    text-transform: uppercase;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.section-heading {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.section-description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.5;
    max-width: 80rem;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.accent-coral {
    color: var(--color-coral);
}

.accent-teal {
    color: var(--color-teal);
}

.italic {
    font-style: italic;
}

.font-bold {
    font-weight: 700;
}

@media (min-width: 768px) {
    .brand-section {
        padding: 4rem 3rem;
    }
    
    .section-label {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }
    
    .section-heading {
        font-size: 3.5rem;
        margin-bottom: 3rem;
    }
    
    .section-description {
        font-size: 1.375rem;
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .section-label {
        font-size: 2.25rem;
    }
    
    .section-heading {
        font-size: 4.5rem;
    }
    
    .section-description {
        font-size: 1.875rem;
    }
}

/* ========== SECCIÓN WHAT WE DO ==========*/
.whatwedo-section {
    background-color: white;
    padding: 4rem 4rem;
}

.whatwedo-section .section-description {
    max-width: 100%; 
    gap: 0.8rem; 
    line-height: 1.4;
}

/* Contenedor de los bullets */
.bullets-wrapper {
    display: flex;
    flex-direction: column; 
    gap: 12px;              
    margin-top: 15px;       
}

.bullet-item {
    display: inline-flex;
    align-items: center; 
    gap: 10px;           
}

.icon-bullet {
    width: 22px;        
    height: 22px;
    flex-shrink: 0;
}

/*la animación de los iconos*/

/* Estado inicial: invisible */
.bullet-item {
    opacity: 0;
    transform: translateY(10px);
}

.is-visible .bullet-item {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Los retrasos se quedan igual */
.is-visible .bullet-item:nth-child(1) { animation-delay: 0.2s; }
.is-visible .bullet-item:nth-child(2) { animation-delay: 0.8s; }
.is-visible .bullet-item:nth-child(3) { animation-delay: 1.4s; }


/* ========== AJUSTES PARA DESKTOP (768px en adelante) ========== */
@media (min-width: 768px) {
    .whatwedo-section {
        padding: 4rem 3rem;
    }

    .whatwedo-section .section-description {
        max-width: 95%; 
        gap: 1.2rem; 
    }

    .bullets-wrapper {
        display: inline-flex; 
        flex-direction: row;  
        margin-top: 0;        
        margin-left: 12px;    
        gap: 18px; 
        vertical-align: middle;
    }

    .icons-section {
        display: none;
    }
}
/* ========== SECCIÓN CONTACT ==========*/
.contact-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}


.contact-background {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 0;
}

.contact-bg-left {
    flex: 1;
    background-color: var(--color-cream);
}

.contact-bg-right {
    width: 16%; 
    background-color: var(--color-dark);
}

.contact-container {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 80vh; /* Cambiado de 100vh a 80vh */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 6rem;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    width: 100%;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.contact-icon {
    width: 32px;
    height: 32px;
}

.contact-title {
    font-family: var(--font-body); 
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-dark);
}

/* La línea horizontal que crece */
.contact-line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--color-dark);
    margin-right: 20%;
    opacity: 0.6;
}

.contact-link {
    font-family: var(--font-serif);
    font-size: 1.75rem; 
    font-weight: 400;
    margin-left: 3rem; 
    transition: opacity 0.3s ease;
}

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

/* Logo B360 posicionado en la franja negra */

.footer-logo-wrapper {
    position: absolute;
    bottom: 3rem;
    right: 0;
    width: 15%; 
    display: flex;
    justify-content: center; 
    align-items: center;
    z-index: 10;
}

.footer-logo {
    width: 80%; 
    max-width: 100px;
    height: auto;
}

/* ========== AJUSTE PARA MÓVIL ========== */

@media (max-width: 768px) {
    
    .contact-container {
        margin-left: 3.8rem !important;
        width: calc(100% - 6.5rem);
    }

    /* 2. ICONOS GRANDES */
    .contact-icon {
        width: 36px !important; 
        height: 36px !important;
        flex-shrink: 0;
    }

    /* 3. TÍTULOS ALINEADOS CON LÍNEA LARGA */
    .contact-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 10px;
    }

    .contact-title {
        font-size: 1.1rem;
        text-transform: capitalize;
        flex-shrink: 0;
    }

    .contact-line {
        flex-grow: 1 !important;
        height: 1px;
        background-color: rgba(0, 0, 0, 0.3);
    }

    /* 4. EL LINK: Grande y alineado debajo del ICONO */
    .contact-link {
        font-size: 1.2rem !important; 
        font-weight: 700;           
        display: block;
        margin-left: 0 !important; 
        color: #000;
        letter-spacing: -0.02em;    
        word-break: break-all;      
    }

    /* 5. Espaciado entre los dos bloques (Email e Instagram) */
    .contact-grid {
        display: flex;
        flex-direction: column;
        gap: 3.5rem; 
    }
}


/* ========== AJUSTE PARA DESKTOP ========== */

@media (min-width: 1024px) {
    .contact-grid {
        flex-direction: row;
        gap: 8%;
        align-items: flex-start;
    }

    .contact-item {
        flex: 1;
        max-width: 400px;
    }
}

/* ========== ANIMACIONES ==========*/
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE MOBILE ==========*/
@media (max-width: 640px) {
    .section-container {
        padding: 0;
    }
    
    .section-label {
        font-size: 1.25rem;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
        gap: 0.75rem;
    }
    
    .contact-section {
        padding: 3rem 1rem;
    }
}

/* ========== ACCESIBILIDAD ==========*/
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
