/* HazTodo.com - CSS Limpio y Moderno */

/* ========================================
   1. RESET Y CONFIGURACIÓN BASE
   ======================================== */
*, :after, :before {
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
}

*, :after, :before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

*, :after, :before {
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
}

*, :after, :before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary {
    display: block;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

html {
    width: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: "Graphik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 20px;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    direction: ltr;
    font-variant-numeric: lining-nums;
    -ms-font-feature-settings: "lnum" 1;
    -o-font-feature-settings: "lnum" 1;
    -webkit-font-feature-settings: "lnum" 1;
    font-feature-settings: "lnum" 1;
    background: #f5f5fa;
    color: #47474f;
    line-height: 1.3;
}

/* ========================================
   2. FUENTE GLOBAL
   ======================================== */
* {
    font-family: "Graphik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* ========================================
   3. VARIABLES CSS
   ======================================== */
:root {
    --primary-color: #dc3545;
    --secondary-color: #c82333;
    --accent-color: #ff6b7a;
    --text-dark: #333;
    --text-light: #666;
    --white: #f5f5fa;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

/* ========================================
   4. LAYOUT PRINCIPAL
   ======================================== */
.main {
    margin-top: 60px;
    overflow: hidden;
}

.pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f5fa;
    z-index: -1;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   5. HEADER Y NAVEGACIÓN
   ======================================== */
.header {
    background: #ffffff;
    width: 100%;
    height: 60px;
    z-index: 1041;
    position: fixed;
    right: 0;
    left: 0;
    top: 0;
    border-bottom: 1px solid #d6d6df;
    padding: 0;
}

.header nav {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    height: 60px;
    width: 100%;
    justify-content: space-between;
    padding: 0 24px;
}

.header .menu {
    -ms-flex-align: center;
    align-items: center;
    height: 100%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-order: 2;
    order: 2;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    text-transform: uppercase;
    margin-left: 2rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand i {
    font-size: 1.5rem;
}

.brand-logo {
    height: 32px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.menu a {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    direction: ltr;
    text-transform: uppercase;
    list-style: none;
    box-sizing: inherit;
    margin: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
    background: rgba(0, 0, 0, 0);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: #161616;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.menu a:hover {
    color: var(--primary-color);
}

/* Reglas específicas para header y menú */
header .menu a:hover {
    color: #161616;
}

.header .menu>ul>li, .header .menu>ul>li>a {
    color: #161616;
    text-decoration: none;
}

.header .menu>ul>li>a, .header .menu>ul>li>span {
    padding: 0 12px;
}

.header .menu a {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    color: #161616;
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    order: 1;
    margin-left: 0;
}

.brand:hover {
    color: var(--primary-color);
}

.menu--sm {
    display: none;
}

.menu--md {
    display: none;
}

/* ========================================
   NAVEGACIÓN AVANZADA
   ======================================== */
.nav-has-dropdown {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    padding: 0;
    min-width: 300px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.nav-dropdown--company {
    min-width: 600px;
    max-width: 700px;
    width: 700px;
}

.dropdown-grid {
    display: flex;
    gap: 0;
    min-height: 300px;
}

.dropdown-column {
    flex: 1;
    padding: 1.5rem;
    border-right: 1px solid var(--border-color);
}

.dropdown-column:last-child {
    border-right: none;
}

.dropdown-column--narrow {
    flex: 0.8;
    background: #f8f9fa;
}

.nav-has-dropdown:hover .nav-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-dropdown--full {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-hover);
    padding: 2rem;
    min-width: auto;
    display: none;
}

.nav-has-dropdown--full:hover .nav-dropdown--full {
    display: block;
}

.nav-dropdown--left {
    left: auto;
    right: 0;
}

.nav__title {
    font-weight: 600;
    color: #33333b;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-dropdown li {
    margin-bottom: 0.5rem;
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-dropdown a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    order: 3;
}

.link--secondary {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link--secondary:hover {
    color: var(--primary-color);
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Botón de Registrarse */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Menu Comp */
.menu-comp {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-comp__products,
.menu-comp__business,
.menu-comp__general {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-comp__products:last-child,
.menu-comp__business:last-child,
.menu-comp__general:last-child {
    border-bottom: none;
}

.menu-comp__products {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.menu-comp__business {
    background: var(--white);
}

.menu-comp__general {
    background: #f8f9fa;
}

.nav__group {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.nav__group:last-child {
    margin-bottom: 0;
}

.nav__title {
    font-weight: 600;
    color: #33333b;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar__item__content {
    flex: 1;
}

.navbar__item__description {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.navbar__item__go {
    margin-left: 0.5rem;
    color: var(--text-light);
}

.navbar__item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
    border: 1px solid transparent;
}

.navbar__item:hover {
    background-color: var(--light-gray);
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar__item__icon {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.navbar__item__title {
    font-weight: 500;
    color: var(--text-dark);
}

.navbar__item__description {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.navbar__item--xs {
    padding: 0.25rem 0.5rem;
}

.navbar__item--md {
    padding: 0.75rem;
}

.navbar__item--lg {
    padding: 1rem;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.divider--break {
    margin: 1rem 0;
}

/* Language Selector */
.lang__current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    position: relative;
}

.lang__current:hover {
    background-color: var(--light-gray);
}

.lang__current:hover + .lang__menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Help Dropdown */
.help-dropdown {
    position: relative;
}

.help__current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.help__current:hover {
    background-color: var(--light-gray);
}

.help__current:hover + .help__menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.help__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow);
    min-width: 150px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.lang__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow);
    min-width: 150px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.lang__menu li {
    margin: 0;
}

.lang__menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.lang__menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Responsive */
.hide--sm {
    display: block;
}

.show--sm {
    display: none;
}

@media (max-width: 768px) {
    .hide--sm {
        display: none;
    }
    
    .show--sm {
        display: block;
    }
    
    .nav-dropdown--full {
        position: static;
        box-shadow: none;
        border: none;
    padding: 1rem;
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ========================================
   5. HERO SECTION
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Home title section */
.home-title {
    position: relative;
    padding: 30px 45px;
    text-align: center;
}

.home-title__title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.home-title__subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   6. TOOLS SECTION
   ======================================== */
.tools {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.tools__filter {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    direction: ltr;
    color: #47474f;
    box-sizing: inherit;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 0 auto 32px;
    flex-wrap: wrap;
}

.tag {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-dark);
}

.tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tag.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.tools__container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.tools__item {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.tools__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: inherit;
}

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

.tools__item a:hover {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   ESTILOS PARA PÁGINAS DE CÁLCULO
   ======================================== */
.card {
    background: #ffffff !important;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-body {
    background: #ffffff !important;
}

.card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e9ecef;
}

/* ========================================
   ESTILOS PARA PAGE HEADER
   ======================================== */
.page-header {
    font-family: Graphik, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 20px;
    font-size: 16px;
    font-weight: 400;
    direction: ltr;
    font-variant-numeric: lining-nums;
    -ms-font-feature-settings: "lnum" 1;
    -o-font-feature-settings: "lnum" 1;
    -webkit-font-feature-settings: "lnum" 1;
    font-feature-settings: "lnum" 1;
    background: #f5f5fa;
    color: #47474f;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    font-family: Graphik, Arial, sans-serif;
}

.page-header p {
    max-width: 800px;
    margin: 8px auto 0;
    line-height: 32px;
    font-size: 22px;
    font-weight: 400;
    color: #47474f;
    font-family: Graphik, Arial, sans-serif;
}

.tools__item__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Colores únicos para cada calculadora */

/* Calculadora de Concreto - Azul */
.tools__item:nth-child(3) .tools__item__icon svg,
.tools__item:nth-child(3) .tools__item__icon svg * {
    fill: #007bff !important;
    stroke: #007bff !important;
}

/* Calculadora de Ladrillos - Naranja */
.tools__item:nth-child(4) .tools__item__icon svg,
.tools__item:nth-child(4) .tools__item__icon svg * {
    fill: #fd7e14 !important;
    stroke: #fd7e14 !important;
}

/* Calculadora de Pintura - Verde */
.tools__item:nth-child(5) .tools__item__icon svg,
.tools__item:nth-child(5) .tools__item__icon svg * {
    fill: #28a745 !important;
    stroke: #28a745 !important;
}

/* Calculadora de Mayólicas - Púrpura */
.tools__item:nth-child(6) .tools__item__icon svg,
.tools__item:nth-child(6) .tools__item__icon svg * {
    fill: #6f42c1 !important;
    stroke: #6f42c1 !important;
}

/* Calculadora de Encofrado - Rojo */
.tools__item:nth-child(7) .tools__item__icon svg,
.tools__item:nth-child(7) .tools__item__icon svg * {
    fill: #dc3545 !important;
    stroke: #dc3545 !important;
}

/* Preservar elementos blancos y transparentes para todos */
.tools__item__icon svg path[fill="#FFF"],
.tools__item__icon svg rect[fill="#FFF"],
.tools__item__icon svg circle[fill="#FFF"] {
    fill: #FFF !important;
}

.tools__item__icon svg rect[fill="none"],
.tools__item__icon svg path[fill="none"] {
    fill: none !important;
}

/* Tratamiento especial para elementos con opacidad */
.tools__item__icon svg rect[opacity],
.tools__item__icon svg circle[opacity],
.tools__item__icon svg path[opacity] {
    opacity: inherit !important;
}

.tools__item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.tools__item__content p {
    color: var(--text-light);
    line-height: 1.6;
    text-align: center;
}

/* ========================================
   7. CARDS Y CONTENEDORES
   ======================================== */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.25rem;
}

.card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Grid system */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ========================================
   8. BOTONES
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ========================================
   9. FORMULARIOS
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

/* Login específico */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.login-card {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 400px;
}

.login-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 1.8rem;
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    color: var(--text-light);
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.divider span {
    background: var(--white);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

/* ========================================
   10. FOOTER
   ======================================== */
.footer-main {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-main__row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-main__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-main__nav li {
    margin-bottom: 0.5rem;
}

.footer-main__nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-main__nav a:hover {
    color: var(--white);
}

.separator {
    height: 1px;
    background: #444;
    margin: 2rem 0;
}

.footer-big__lang {
    margin-bottom: 1rem;
}

.lang__current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
    cursor: pointer;
}

.footer-main__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social {
    display: flex;
    gap: 1rem;
}

.social__item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social__item--twitter {
    background: #1da1f2;
}

.social__item--facebook {
    background: #3b5998;
}

.social__item--linkedin {
    background: #0077b5;
}

.social__item--instagram {
    background: #e4405f;
}

.social__item:hover {
    transform: translateY(-2px);
}

.slogan {
    color: #ccc;
    font-size: 0.9rem;
}

/* ========================================
   11. UTILIDADES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ========================================
   12. ANIMACIONES
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* ========================================
   13. ESTADOS
   ======================================== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

/* ========================================
   14. RESPONSIVE
   ======================================== */
@media (max-width: 90em) {
    .home-title {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .menu--sm {
        display: block;
    }
    
    .menu--md {
        display: none;
    }
    
    .menu ul {
        display: none;
    }
    
    .home-title__title {
        font-size: 2rem;
    }
    
    .home-title__subtitle {
        font-size: 1rem;
    }
    
    .tools__filter {
        gap: 0.5rem;
    }
    
    .tag {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .tools__container {
        grid-template-columns: 1fr;
    }
    
    .footer-main__info {
        flex-direction: column;
        text-align: center;
    }
    
    .login-card {
        margin: 1rem;
        padding: 2rem;
    }
    
    .social-login {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .home-title {
        padding: 2rem 0 1rem;
    }
    
    .home-title__title {
        font-size: 1.8rem;
    }
    
    .tools {
        padding: 1rem;
    }
    
    .tools__item {
        padding: 1.5rem;
    }
}