@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #ffffff;
    --text-primary: #1a2a44;
    --text-secondary: #555555;
    --accent-blue: #1a2a44;

    /* Global Theme Colors */
    --color-green-main: #00bf00;
    --color-orange-main: #ff4500;
    --color-blue-bright: #2979FF;
    /* From 'De Comportamiento' */

    --font-main: 'Montserrat', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

/* Utilities for Text/BG matching */
.text-green {
    color: var(--color-green-main) !important;
}

.bg-green {
    background-color: var(--color-green-main) !important;
}

.text-orange {
    color: var(--color-orange-main) !important;
}

.bg-orange {
    background-color: var(--color-orange-main) !important;
}


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

body {
    background-color: var(--bg-color);
    font-family: var(--font-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* =========================================
   HEADER
   ========================================= */
header {
    text-align: center;
    padding: 2rem 1rem 0.5rem 1rem;
    /* Reduced bottom padding */
    margin-bottom: 0.5rem;
    /* Reduced margin */
}

.logo {
    /* Increased size */
    max-height: 250px;
    width: auto;
    display: block;
    margin: 0 auto 0.5rem auto;
    /* Reduced bottom margin */
}

.header-link {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

.header-link:hover {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

/* =========================================
   LAYOUT UTILS
   ========================================= */
.main-home {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    justify-content: center;
    align-items: flex-start;
}

/* =========================================
   PANEL & SCREWS (UNIVERSAL)
   ========================================= */
.control-panel,
.panel-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    box-shadow:
        5px 10px 20px rgba(0, 0, 0, 0.08),
        -1px -1px 3px rgba(255, 255, 255, 1);
}

.control-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel-card {
    text-align: center;
}

.screw {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, transparent 42%, #666 42%, #666 58%, transparent 58%),
        linear-gradient(to bottom, #eeeeee 0%, #bbbbbb 100%);
    border: 1px solid #999;
    box-shadow:
        inset 1px 1px 2px rgba(255, 255, 255, 0.8),
        1px 1px 2px rgba(0, 0, 0, 0.2);
}

.screw.tl {
    top: 15px;
    left: 15px;
    transform: rotate(45deg);
}

.screw.tr {
    top: 15px;
    right: 15px;
    transform: rotate(15deg);
}

.screw.bl {
    bottom: 15px;
    left: 15px;
    transform: rotate(-15deg);
}

.screw.br {
    bottom: 15px;
    right: 15px;
    transform: rotate(90deg);
}

.btn-wrapper {
    text-align: center;
}

/* =========================================
   HYPER-REALISTIC 3D BUTTONS
   ========================================= */
.btn-label {
    margin-top: 2rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 1);
}

.btn-3d {
    position: relative;
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background: linear-gradient(145deg, #cfcfcf, #ffffff);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.2),
        inset 0 0 0 10px #dcdcdc,
        inset 0 0 0 11px #b0b0b0;
}

.btn-3d::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 18px;
    width: 164px;
    height: 164px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%,
            var(--btn-highlight) 0%,
            var(--btn-main) 40%,
            var(--btn-shadow) 100%);
    box-shadow:
        inset 0 2px 5px rgba(255, 255, 255, 0.4),
        inset 0 -5px 10px rgba(0, 0, 0, 0.3),
        0 8px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

/* PRESSED STATE */
.btn-3d:active::after {
    transform: scale(0.96);
    box-shadow:
        inset 0 5px 15px rgba(0, 0, 0, 0.4),
        0 2px 5px rgba(0, 0, 0, 0.3);
    background: radial-gradient(circle at 50% 30%,
            var(--btn-main) 0%,
            var(--btn-shadow) 100%);
}

.btn-green {
    --btn-main: var(--color-green-main);
    --btn-highlight: #33ff33;
    --btn-shadow: #006600;
}

.btn-orange {
    --btn-main: var(--color-orange-main);
    --btn-highlight: #ff8a50;
    --btn-shadow: #b32d00;
}


/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 0.8rem;
    margin-top: auto;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 700px) {

    /* Logo scaling for mobile */
    .logo {
        max-height: 140px;
        /* Smaller on mobile to fit screen */
        margin-bottom: 1rem;
    }

    .button-container {
        flex-direction: column;
        gap: 3rem;
    }

    .control-panel,
    .panel-card {
        padding: 2rem 1.5rem;
        /* Compact padding */
        width: 100%;
        /* Full width */
    }

    .btn-3d {
        width: 160px;
        height: 160px;
    }

    .btn-3d::after {
        top: 14px;
        left: 14px;
        width: 132px;
        height: 132px;
    }
}

/* =========================================
   FORMS (New)
   ========================================= */
.form-group {
    margin-bottom: 1.2rem;
    width: 100%;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: #f0f0f0;
    /* Recessed Effect */
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.8);
    font-family: var(--font-main);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: #fff;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.15), inset -3px -3px 6px rgba(255, 255, 255, 1);
}

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

.btn-submit {
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
}