@font-face {
    font-family: 'WichoFont';
    src: url('font/7cfa930a-ebaf-4c7f-a1b5-455e6d513e15.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    background-color: #000;
    font-family: 'WichoFont', serif;
    overflow: hidden;
    height: 100vh;
}

.link {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.link:hover {
    color: #4ade80;
}

.logo-link {
    text-decoration: none;
    color: #fff;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 80px; /* Espacio para el navbar */
}

/* Ajustar el margin-top en móvil para el navbar más pequeño */
@media (max-width: 768px) {
    .container {
        margin-top: 45px; /* Espacio para el navbar más pequeño en móviles */
    }
}

/* Navbar styles - Réplica exacta de index.html */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 100;
    border-bottom: 2px solid #fff;
}

.nav-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-family: 'WichoFont', serif;
    font-size: 3.5rem;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-text {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1px;
    opacity: 0.9;
    transform: translateY(8px);
}

.nav-link {
    color: #4ade80;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}


/* Template container */
.template-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

/* Cuando no hay background, mantiene comportamiento normal */
.template-container:not(.with-background) {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.template-image {
    max-width: 80vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.8));
    border-radius: 15px;
    transition: all 0.3s ease;
}

.template-image:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 20px 45px rgba(0,0,0,0.9));
}

/* Background Image */
.background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-52%, -50%);
    width: 60%;
    height: 80%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    z-index: 1;
    opacity: 0;
    transition: all 0.3s ease, opacity 0.8s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.background-image.loaded {
    opacity: 1;
}

/* Hover effect for background image */
.template-container.with-background:hover .background-image {
    transform: translate(-52%, -50%) scale(1.02);

}

/* Template container with background */
.template-container.with-background {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.template-container.with-background .template-image {
    position: relative;
    z-index: 2;
    background: transparent;
    transition: all 0.3s ease;
    /* Mantiene exactamente el mismo tamaño y posición */
    max-width: 80vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0;
}

/* Hover effect for template image with background */
.template-container.with-background:hover .template-image {
    transform: scale(1.02);
    filter: drop-shadow(0 20px 45px rgba(0,0,0,0.9));
}

/* Upload Button */
.upload-btn {
    position: absolute;
    left: -380px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 3px solid #fff;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1.4rem;
    padding: 20px 32px;
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    opacity: 0.8;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.upload-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) translateX(5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    color: #4ade80;
    border-color: #4ade80;
}

.upload-btn:active {
    transform: translateY(-50%) translateX(3px) scale(1.02);
}

.upload-btn svg {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.upload-btn span {
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    font-weight: 500;
}

/* Download Button */
.download-btn {
    position: absolute;
    right: -380px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 3px solid #fff;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1.4rem;
    padding: 20px 32px;
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    opacity: 0;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    visibility: hidden;
}

.download-btn.show {
    opacity: 0.8;
    visibility: visible;
}

.download-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) translateX(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    color: #4ade80;
    border-color: #4ade80;
}

.download-btn:active {
    transform: translateY(-50%) translateX(-3px) scale(1.02);
}

.download-btn svg {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.download-btn span {
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    font-weight: 500;
}

/* Social Footer */
.social-footer {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 25px;
    z-index: 25;
    justify-content: center;
    align-items: center;
    width: auto;
}

.social-icon {
    width: 40px;
    height: 40px;
    color: #fff;
    transition: all 0.3s ease;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.1);
    color: #4ade80;
    filter: drop-shadow(0 5px 15px rgba(74, 222, 128, 0.4));
}

.social-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

/* Ranita styles */
/* Imagen de la ranita */
.frog-image {
    position: fixed;
    bottom: -10px;
    right: 0px;
    z-index: 100;
    pointer-events: none;
}

.frog-img {
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.6));
    transition: transform 0.3s ease;
}

.frog-img:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Falling leaves styles */
#falling-leaves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.leaf {
    position: absolute;
    background: radial-gradient(ellipse at center, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    border-radius: 0 100% 0 100%;
    box-shadow: 
        inset 0 0 10px rgba(255,255,255,0.2),
        0 2px 8px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.leaf::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #16a34a, transparent);
    transform: translateY(-50%);
}

/* Responsive design */
@media (max-width: 1024px) {
    .template-image {
        max-width: 95vw;
        max-height: 75vh;
    }
    
    .navbar {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .nav-text {
        font-size: 1.5rem;
    }
    
    .social-footer {
        gap: 20px;
        bottom: 25px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .upload-btn {
        left: -180px;
        padding: 18px 26px;
        font-size: 1.2rem;
        gap: 14px;
        border-width: 2.5px;
    }
    
    .upload-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .upload-btn span {
        font-size: 1.2rem;
        font-weight: 500;
    }
    
    .background-image {
        width: 55%;
        height: 75%;
    }
    
    .download-btn {
        right: -180px;
        padding: 18px 26px;
        font-size: 1.2rem;
        gap: 14px;
        border-width: 2.5px;
    }
    
    .download-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .download-btn span {
        font-size: 1.2rem;
        font-weight: 500;
    }
    
    /* Botones de acción responsive */
    .action-buttons {
        right: -80px;
        gap: 16px;
    }
    
    .action-btn {
        padding: 14px 18px;
        font-size: 1.1rem;
        gap: 10px;
        border-width: 2px;
        min-width: 100px;
        flex-direction: column;
    }
    
    .action-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .action-btn span {
        font-size: 1.1rem;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        letter-spacing: 1px;
    }
}

@media (max-width: 768px) {
    /* Navbar más pequeño para móviles - igual que testimonios.html */
    .navbar {
        height: 45px;
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .nav-text {
        font-size: 0.8rem;
        transform: translateY(2px);
    }
    
    .template-image {
        max-width: 85vw;
        max-height: 60vh;
    }
    
    .social-footer {
        gap: 15px;
        bottom: 20px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .upload-btn {
        left: -50px;
        padding: 8px 12px;
        font-size: 1rem;
        gap: 10px;
        border-width: 2px;
        flex-direction: column;
        transition: left 0.3s ease;
    }
    
    .upload-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .upload-btn span {
        font-size: 0.9rem;
        font-weight: 500;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        letter-spacing: 2px;
    }
    
    .template-container.with-background .upload-btn {
        left: -40px;
    }
    
    .template-container.with-background .download-btn {
        right: -40px;
    }
    
    .background-image {
        width: 65%;
        height: 80%;
    }
    
    .download-btn {
        right: -50px;
        padding: 8px 12px;
        font-size: 1rem;
        gap: 10px;
        border-width: 2px;
        flex-direction: column;
        transition: right 0.3s ease;
    }
    
    .download-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .download-btn span {
        font-size: 0.9rem;
        font-weight: 500;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        letter-spacing: 2px;
    }
    
    /* Botones de acción responsive para móviles */
    .action-buttons {
        right: -160px;
        gap: 14px;
    }
    
    .action-btn {
        padding: 14px 20px;
        font-size: 1rem;
        gap: 10px;
        border-width: 2px;
        min-width: 120px;
    }
    
    .action-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .action-btn span {
        font-size: 1rem;
    }
}

/* Estilos para herramientas de dibujo */
.canvas-wrapper {
    position: relative;
    display: inline-block;
}

/* Botones de acción */
.action-buttons {
    position: absolute;
    right: -180px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 30;
}

.action-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    padding: 15px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    opacity: 0.9;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    min-width: 160px;
    justify-content: center;
}

.action-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    color: #4ade80;
    border-color: #4ade80;
}

.action-btn:active {
    transform: translateX(-3px) scale(1.02);
}

.action-btn svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.action-btn span {
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    font-weight: 500;
}

.download-action-btn:hover {
    color: #4ade80;
    border-color: #4ade80;
}

.publish-action-btn:hover {
    color: #f59e0b;
    border-color: #f59e0b;
}

.drawing-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: crosshair;
    border-radius: 15px;
}

.drawing-tools {
    position: absolute;
    left: -120px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 30;
}

.tool-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.tool-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.tool-btn svg {
    width: 20px;
    height: 20px;
}

.color-picker {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
}

.color-picker::-webkit-color-swatch-wrapper {
    border-radius: 50%;
}

.color-picker::-webkit-color-swatch {
    border-radius: 50%;
    border: none;
}

.brush-size {
    width: 80px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    outline: none;
    cursor: pointer;
}

.brush-size::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.brush-size::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Responsive para herramientas de dibujo */
@media (max-width: 768px) {
    .drawing-tools {
        left: -60px;
        top: 50%;
        transform: translateY(-50%);
        padding: 8px;
        gap: 5px;
        border-radius: 18px;
    }
    
    .tool-btn {
        width: 30px;
        height: 30px;
    }
    
    .tool-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .color-picker {
        width: 30px;
        height: 30px;
    }
    
    .brush-size {
        width: 50px;
        height: 30px;
    }
    
    /* Ocultar la ranita en móvil */
    .frog-image {
        display: none;
    }
    
    /* Ajustar botones de acción para móviles */
    .action-buttons {
        right: -60px;
        gap: 10px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        gap: 6px;
        border-width: 2px;
        min-width: 50px;
        flex-direction: column;
    }
    
    .action-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .action-btn span {
        font-size: 0.9rem;
        letter-spacing: 1px;
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }
}

/* Estilos para pantallas muy pequeñas (móviles pequeños) */
@media (max-width: 480px) {
    .drawing-tools {
        left: -50px;
        padding: 6px;
        gap: 4px;
        border-radius: 15px;
    }
    
    .tool-btn {
        width: 25px;
        height: 25px;
    }
    
    .tool-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .color-picker {
        width: 25px;
        height: 25px;
    }
    
    .brush-size {
        width: 40px;
        height: 25px;
    }
    
    .action-buttons {
        right: -50px;
        gap: 8px;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        gap: 5px;
        min-width: 40px;
        flex-direction: column;
    }
    
    .action-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .action-btn span {
        font-size: 0.8rem;
        letter-spacing: 1px;
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }
    
    .template-image {
        max-width: 95vw;
        max-height: 65vh;
    }
}

/* Estilos para el modal de publicación */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    margin: 0;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    backdrop-filter: blur(15px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-modal {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #4ade80;
    transform: scale(1.2);
}

.modal h3 {
    font-family: Arial, sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Formulario del modal */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ade80;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(45deg, #4ade80, #22c55e);
    border: none;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 222, 128, 0.4);
    background: linear-gradient(45deg, #22c55e, #16a34a);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Estilos para la fecha en el modal */
.modal .fecha-publicacion {
    font-family: Arial, sans-serif !important;
    text-align: center;
    color: #fff;
    opacity: 0.7;
    margin-top: 20px;
    font-style: italic;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 0;
        padding: 25px;
        width: 95%;
    }
    
    .modal h3 {
        font-size: 1.8rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 1.1rem;
    }
}

/* Estilos para el control de volumen */
.volume-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.volume-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-btn:hover {
    background: rgba(74, 222, 128, 0.8);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4);
}

.volume-btn:active {
    transform: scale(0.95);
}

.volume-btn.muted {
    background: rgba(255, 0, 0, 0.7);
}

.volume-btn.muted:hover {
    background: rgba(255, 0, 0, 0.9);
}

.volume-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

/* Estilos específicos para iPad */
@media (min-width: 768px) and (max-width: 1024px) {
    /* iPad vertical y horizontal */
    .background-image {
        width: 75%;
        height: 85%;
    }
    
    .template-image {
        max-width: 90vw;
        max-height: 80vh;
    }
}

/* Estilos específicos para iPad horizontal */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .background-image {
        width: 85%;
        height: 90%;
    }
    
    .template-image {
        max-width: 95vw;
        max-height: 85vh;
    }
}




