/* ==========================================================================
   1. RESET Y DECLARACIÓN DE FUENTES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fuente Manuscrita Local */
@font-face {
    font-family: 'Brother Signature';
    src: url('fonts/BrotherSignature.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Tipografía base global */
body, html {
    width: 100%;
    height: 100%;
    font-family: 'Sofia Sans Condensed', sans-serif;
    background-color: #080808;
    color: #ffffff;
    overflow: hidden;
}

/* Limitación global para evitar desbordamientos accidentales de imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. CONTENEDOR PRINCIPAL
   ========================================================================== */
.veta-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 4rem 3rem 12rem;
    
    background-image: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0px, rgba(0, 0, 0, 0) 300px),
        url('img/fondo-escritorio.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   3. CABECERA Y BOTÓN WHATSAPP
   ========================================================================== */
.veta-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
}

/* Logo principal con filtro CSS */
.logo-img {
    width: 140px;
    filter: brightness(0) saturate(100%) invert(97%) sepia(0%) saturate(2878%) hue-rotate(124deg) brightness(96%) contrast(92%);
    transition: filter 0.3s ease;
}

/* Tarjeta contenedora de WhatsApp */
.whatsapp-card {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    padding: 22px 28px 16px 28px;
    background: #b7b7b7;
    backdrop-filter: blur(6px);
    text-decoration: none;
    color: #000000;
    z-index: 20;
    
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Base circular que se posiciona sobre el borde superior */
.wa-icon-box {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 36px;
    height: 36px;
    background-color: #b7b7b7; /* Tapa la línea de borde posterior */
    border-radius: 50%;
    overflow: hidden;          /* Evita que cualquier elemento se salga del círculo */
    
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    transition: background-color 0.3s ease;
}

/* Imagen PNG de 200x200px escalada a 22px en escritorio */
.wa-icon-img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    object-fit: contain;
    background: transparent;
    border: none;
    display: block;
}

.wa-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Texto de la tarjeta */
.wa-number {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000000;
}

.wa-action {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000000;
}

/* Efecto Hover */
.whatsapp-card:hover {
    background: #eaeaea;
    border-color: #ffffff;
    transform: translateY(-53%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.whatsapp-card:hover .wa-icon-box {
    background-color: #eaeaea;
}

/* ==========================================================================
   4. ÁREA CENTRAL (ESCRITORIO)
   ========================================================================== */
.veta-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-top: auto;
    margin-bottom: auto;
    padding: 2rem 0;
}

.text-content {
    max-width: 340px;
    z-index: 2;
}

.main-title {
    font-size: 1.32rem;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.3;
    text-transform: uppercase;
    color: #eaeaea;
    margin-bottom: 1rem;
}

.handwritten-text {
    font-family: 'Brother Signature', cursive, sans-serif;
    font-size: 2.56rem;
    line-height: 1.05; 
    color: #eaeaea;
    white-space: normal;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.handwritten-text.is-ready {
    opacity: 1;
}

.underline-line {
    display: none;
}

.veta-drawing-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 380px;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.drawing-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.char {
    opacity: 0;
    display: inline;
    animation: fadeInChar 0.4s forwards ease-in-out;
}

@keyframes fadeInChar {
    to { opacity: 1; }
}

/* ==========================================================================
   5. PIE DE PÁGINA
   ========================================================================== */
.veta-footer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    align-items: center;
    z-index: 10;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Figtree', sans-serif; 
    color: #747474;                      
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff; 
}

.footer-icon {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

/* ==========================================================================
   6. RESPONSIVE MÓVIL
   ========================================================================== */
@media (max-width: 768px) {
    body, html {
        overflow-y: auto;
    }

    .veta-container {
        height: auto;
        min-height: 100vh;
        padding: 2rem 1.2rem; 
        
        background-image: 
            linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0px, rgba(0, 0, 0, 0) 500px),
            url('img/fondo-movil.webp');
        overflow: visible;
    }

    .veta-header {
        align-items: center;
    }

    .logo-img {
        width: 100px;
    }

    .whatsapp-card {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin-top: 12px;
        padding: 18px 16px 12px 16px;
        background: #b7b7b7;
        color: #000000;
    }

    .whatsapp-card:hover {
        transform: none;
    }

    /* Ajuste del icono en dispositivos móviles */
    .wa-icon-box {
        width: 32px;
        height: 32px;
        background-color: #b7b7b7;
    }

    .wa-icon-img {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }

    .wa-number {
        font-size: 1.05rem;
        color: #000000;
    }

    .wa-action {
        font-size: 0.8rem;
        letter-spacing: 1px;
        color: #000000;
    }

    .veta-main {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: static;
        margin-top: 70px;
        margin-bottom: 2rem;
        padding: 0;
    }

    .text-content {
        max-width: 100%;
        width: 100%;
    }

    .main-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .handwritten-text {
        font-size: 2.4rem;
        line-height: 1.05;
    }

    .veta-drawing-box {
        position: static;
        transform: none;
        max-width: 176px;
        align-self: center;
        margin: 2rem auto 1.5rem auto;
    }

    .veta-footer {
        justify-content: space-between;
    }
}