/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Barra lateral */
.sidebar {
    width: 250px;
    background: #01002B;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: right 0.3s ease;
    color: #ecf0f1;
    text-align: center;
}

.sidebar h1 {
    margin: 0;
    font-size: 18px;
    color: #ecf0f1;
    padding-bottom: 15px;
    border-bottom: 1px solid #34495e;
    text-align: center;
}

/* Botón de toggle */
.toggle-sidebar {
    position: fixed;
    right: 250px;
    top: 20px;
    background: #3498db;
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.toggle-sidebar:hover {
    background: #0060FF;
}

/* Contenido principal */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: margin-right 0.3s ease;
}

.viewer-container {
    background: #333333;
    padding: 10px;
    flex-grow: 1;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Estilos para los controles */
.control-group {
    background: #0000007e;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.control-group h2 {
    margin-top: 0;
    font-size: 14px;
    color: #bdc3c7;
    border-bottom: 1px solid #0060FF;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.url-section {
display: flex
;
    gap: 10px;
    margin-bottom: 15px;
    flex-direction: column;
}

.url-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #2c3e50;
    border-radius: 4px;
    background: #ecf0f1;
    color: #2c3e50;
}

button {
    padding: 8px 15px;
    background: #0060FF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 500;
}

button:hover {
    background: #0060FF;
}

.device-presets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.device-btn {
    padding: 10px;
    background: #34495e;
    border: 1px solid #2c3e50;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 13px;
    color: #ecf0f1;
}

.device-btn:hover {
    background: #3d566e;
    border-color: #3498db;
}

.device-btn.active {
    background: #0060FF;
    border-color: #0060FF;
    color: white;
}

.custom-size {
    display: grid;
    grid-template-columns: 1fr 20px 1fr auto;
    gap: 8px;
    align-items: center;
}

.custom-size input {
    padding: 8px;
    border: 1px solid #2c3e50;
    border-radius: 4px;
    width: 100%;
    background: #ecf0f1;
    color: #2c3e50;
}

.custom-size span {
    text-align: center;
    color: #bdc3c7;
}

/* Estilos para el visor */
.device-frame {
    transition: all 0.3s ease;
    background: transparent;
}

.website-viewer {
    border: none;
    background: white;
    transition: all 0.3s ease;
}

/* Estilos para móviles */
.mobile-frame {
    position: relative;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.iphone-frame {
    border: 5px solid #111;
    background: #111;
}

.samsung-frame {
    border: 5px solid #0c4da2;
    background: #0c4da2;
    border-radius: 25px;
}

.pixel-frame {
    border: 5px solid #4285f4;
    background: #4285f4;
    border-radius: 20px;
}

.small-frame {
    border: 5px solid #333;
    background: #333;
    border-radius: 15px;
}

.mobile-screen {
    border-radius: 20px;
    overflow: hidden;
}

/* Estilos para tablets */
.tablet-frame {
    position: relative;
    border-radius: 15px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.ipad-frame {
    border: 7px solid #333;
    background: #333;
}

.galaxy-frame {
    border: px solid #0c4da2;
    background: #0c4da2;
}

.small-tablet-frame {
    border: 8px solid #555;
    background: #555;
}

.tablet-screen {
    border-radius: 10px;
    overflow: hidden;
}

/* Estilos para portátiles */
.laptop-frame {
    position: relative;
    width: auto;
    padding: 20px 30px 50px 30px;
    background: #ddd;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.laptop-frame::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #ddd;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.laptop-frame::before {
    content: '';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: #aaa;
    border-radius: 3px;
}

.laptop-screen {
    border: 1px solid #999;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

/* Estilos para desktop */
.desktop-frame {
    position: relative;
    padding: 20px;
    background: #eee;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.desktop-frame::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 80px;
    background: #000000;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}

.wide-frame::after {
/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Barra lateral */
.sidebar {
    width: 250px;
    background: #2c3e50;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: right 0.3s ease;
    color: #ecf0f1;
}

.sidebar h1 {
    margin: 0;
    font-size: 18px;
    color: #ecf0f1;
    padding-bottom: 15px;
    border-bottom: 1px solid #34495e;
}

/* Botón de toggle */
.toggle-sidebar {
    position: fixed;
    right: 250px;
    top: 20px;
    background: #3498db;
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.toggle-sidebar:hover {
    background: #2980b9;
}

/* Contenido principal */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: margin-right 0.3s ease;
}

.viewer-container {
    background: #333333;
    padding: 10px;
    flex-grow: 1;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Estilos para los controles */
.control-group {
    background: #34495e;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.control-group h2 {
    margin-top: 0;
    font-size: 14px;
    color: #bdc3c7;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.url-section {
display: flex
;
    gap: 10px;
    margin-bottom: 15px;
    flex-direction: column;
}

.url-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #2c3e50;
    border-radius: 4px;
    background: #ecf0f1;
    color: #2c3e50;
}

button {
    padding: 8px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 500;
}

button:hover {
    background: #2980b9;
}

.device-presets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.device-btn {
    padding: 10px;
    background: #34495e;
    border: 1px solid #2c3e50;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 13px;
    color: #ecf0f1;
}

.device-btn:hover {
    background: #3d566e;
    border-color: #3498db;
}

.device-btn.active {
    background: #3498db;
    border-color: #2980b9;
    color: white;
}

.custom-size {
    display: grid;
    grid-template-columns: 1fr 20px 1fr auto;
    gap: 8px;
    align-items: center;
}

.custom-size input {
    padding: 8px;
    border: 1px solid #2c3e50;
    border-radius: 4px;
    width: 100%;
    background: #ecf0f1;
    color: #2c3e50;
}

.custom-size span {
    text-align: center;
    color: #bdc3c7;
}

/* Estilos para el visor */
.device-frame {
    transition: all 0.3s ease;
    background: transparent;
}

.website-viewer {
    border: none;
    background: white;
    transition: all 0.3s ease;
}

/* Estilos para móviles */
.mobile-frame {
    position: relative;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.iphone-frame {
    border: 5px solid #111;
    background: #111;
}

.samsung-frame {
    border: 5px solid #0c4da2;
    background: #0c4da2;
    border-radius: 25px;
}

.pixel-frame {
    border: 5px solid #4285f4;
    background: #4285f4;
    border-radius: 20px;
}

.small-frame {
    border: 5px solid #333;
    background: #333;
    border-radius: 15px;
}

.mobile-screen {
    border-radius: 20px;
    overflow: hidden;
}

/* Estilos para tablets */
.tablet-frame {
    position: relative;
    border-radius: 15px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.ipad-frame {
    border: 7px solid #333;
    background: #333;
}

.galaxy-frame {
    border: px solid #0c4da2;
    background: #0c4da2;
}

.small-tablet-frame {
    border: 8px solid #555;
    background: #555;
}

.tablet-screen {
    border-radius: 10px;
    overflow: hidden;
}

/* Estilos para portátiles */
.laptop-frame {
    position: relative;
    width: auto;
    padding: 20px 30px 50px 30px;
    background: #ddd;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.laptop-frame::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #ddd;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.laptop-frame::before {
    content: '';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: #aaa;
    border-radius: 3px;
}

.laptop-screen {
    border: 1px solid #999;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

/* Estilos para desktop */
.desktop-frame {
    position: relative;
    padding: 20px;
    background: #000000;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.desktop-frame::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 80px;
    background: #000000;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}

.wide-frame::after {
    width: 180px;
}

.desktop-screen {
    border: 1px solid #999;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
}
/* ========== ESTILOS PARA WIDE (1920x1080) ========== */
.wide-frame {
    position: relative;
    padding: 25px;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.wide-frame::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 100px;
    background: #000;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
}

.wide-frame::before {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 20px;
    background: #111;
    border-radius: 4px;
}

.wide-screen { 
    border: 2px solid #333;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}
/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 220px;
    }
    
    .toggle-sidebar {
        right: 220px;
    }
    
    .main-content {
        margin-right: 0;
    }
    
    .viewer-container {
        padding: 20px;
    }
    
    .sidebar:not(.visible) + .main-content {
        margin-right: 0;
    }
}
}

.desktop-screen {
    border: 1px solid #999;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 220px;
    }
    
    .toggle-sidebar {
        right: 220px;
    }
    
    .main-content {
        margin-right: 0;
    }
    
    .viewer-container {
        padding: 20px;
    }
    
    .sidebar:not(.visible) + .main-content {
        margin-right: 0;
    }
}
