/* ================= VARIABLES ================= */

:root {
    /* Colores base */
    --bg: #F8FAFC;
    --bg-secondary: #ffffff;
    --text: #333;
    --text-muted: #666;

    /* Marca */
    --primary: #23A0B4;
    --primary-light: #9DCFD1;

    /* Bordes y sombras */
    --border: #e5e7eb;
    --border-soft: #eee;
    --shadow: 0 10px 25px rgba(0,0,0,.08);

    /* Inputs */
    --input-bg: #ffffff;
    --input-border: #ccc;
    --input-text: #333;

    /* Cards */
    --card-bg: #ffffff;

    /* Hover */
    --hover-bg: #f5f5f5;

    /* Alerts */
    --error-bg: #FCEBEB;
    --error-text: #A32D2D;

    --success-bg: #EAF3DE;
    --success-text: #3B6D11;

    --warning-bg: #FAEEDA;
    --warning-text: #854F0B;
}

/* ================= RESET ================= */

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

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #F8FAFC;
    color: #333;
    scroll-behavior: smooth;
    margin: 0;
}

section {
    padding: 100px 0;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    width: 100%;
}


/* ================= ANIMACIONES SCROLL ================= */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= BOTÓN VOLVER ARRIBA ================= */

#btnArriba {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: linear-gradient(135deg, #23A0B4, #9DCFD1);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

#btnArriba.visible {
    opacity: 1;
    visibility: visible;
}

#btnArriba:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(35,160,180,0.4);
}

/* ================= DARK MODE GLOBAL ================= */


:root {
    --bg-main: #F8FAFC;
    --bg-card: #ffffff;
    --bg-soft: #f5f7fa;

    --text-main: #333;
    --text-secondary: #666;

    --border-color: #ddd;
    --input-bg: #fff;

    --accent: #23A0B4;
}


body.dark-mode {
    --bg-main: #121212;
    --bg-card: #1e1e1e;
    --bg-soft: #2a2a2a;

    --text-main: #e0e0e0;
    --text-secondary: #aaa;

    --border-color: #444;
    --input-bg: #2a2a2a;

    --accent: #23A0B4;
}

body.dark-mode .content {
    background: var(--bg-main);
    color: var(--text-main);
}