:root {
    --primary-orange: #FF8C42;
    --primary-blue: #2D9CDB;
    --primary-purure: #2D9CDB;
    --dark-grey: #333333;
    --light-grey: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    color: var(--dark-grey);
    padding-top: 64px;
}

.custom-navbar {
    background-color: var(--black) !important;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.custom-navbar .brand-logo img.logo-nav {
    height: 70px;
    vertical-align: middle;
}

.custom-navbar ul a {
    color: var(--white) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.custom-navbar ul a:hover {
    color: var(--primary-orange) !important;
    background-color: transparent !important;
}

.sidenav {
    background-color: var(--dark-grey);
}

.sidenav li>a {
    color: var(--white) !important;
}

.sidenav li>a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--primary-orange) !important;
}

#inicio {
    min-height: calc(100vh - 64px);
    
    background: linear-gradient(
    135deg, 
    #6A3093 0%,   /* Violeta */
    #30A9DE 35%,  /* Azul */
    #F05A28 65%,  /* Naranja */
    #F9A01B 100%  /* Amarillo */
  );
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 20px 0;
}

#inicio .logo-hero {
    max-width: 250px;
    margin-bottom: 10px;
}

#inicio h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    
  font-weight: bold;
}

#inicio h2 {
    font-size: 1.3rem;
    font-weight: 300;
    margin-top: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.custom-button {
    background-color: var(--primary-orange) !important;
    transition: background-color 0.3s ease;
}

.custom-button:hover {
    background-color: var(--primary-blue) !important;
}

.section {
    padding: 60px 0;
    border-bottom: 1px solid var(--light-grey);
}

.section h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    color: var(--dark-grey);
}

.section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-orange);
    border-radius: 2px;
}

#sobre-mi .profile-pic {
    width: 300px;
    height: 300px;
    object-fit: cover;
    margin-top: 30px;
    border: 5px solid var(--primary-orange);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#habilidades .card {
    border: 1px #007bff solid;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease-in-out;
}

#habilidades .card:hover {
    border: 1px #FF8C00 solid;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.custom-icon-color {
    color: var(--primary-blue);
}

#habilidades ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

#habilidades ul li {
    padding: 5px 0;
    font-size: 1.1rem;
}

.collection .collection-item.avatar .circle {
    background-color: var(--primary-blue);
}

.collection .collection-item.avatar .title {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease-in-out;
}
.collection .collection-item.avatar .title:hover {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-orange);
    transition: transform 0.3s ease-in-out;
}
#proyectos .card .card-image img {
    height: 200px;
    /* Uniform height for project images */
    object-fit: cover;
}

#proyectos .card .card-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--dark-grey);
}

#proyectos .card-content p a {
    color: var(--primary-blue);
    font-weight: 500;
}

#proyectos .card-reveal span.card-title {
    color: var(--primary-blue);
}

#contacto .input-field label {
    color: var(--dark-grey);
}

#contacto .input-field input:focus+label,
#contacto .input-field textarea:focus+label {
    color: var(--primary-blue) !important;
}

#contacto .input-field input:focus,
#contacto .input-field textarea:focus {
    border-bottom: 1px solid var(--primary-blue) !important;
    box-shadow: 0 1px 0 0 var(--primary-blue) !important;
}

.social-links a {
    margin: 0 10px;
    background-color: var(--primary-blue);
}

.social-links a.blue.darken-3 {
    background-color: #0077B5 !important;
}

.social-links a.grey.darken-4 {
    background-color: #24292e !important;
}

.custom-footer {
    background-color: var(--dark-grey) !important;
}

.custom-footer .footer-copyright {
    background-color: var(--black) !important;
}

@media screen and (max-width: 1024px) {
    body {
        padding-top: 56px;
    }

    #inicio {
        min-height: calc(100vh - 56px);
    }

    #inicio h1 {
        font-size: 2.8rem;
    }

    #inicio h2 {
        font-size: 1.5rem;
    }

    .section h2 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    #inicio h1 {
        font-size: 2.2rem;
    }

    #inicio h2 {
        font-size: 1.2rem;
    }

    .custom-navbar .brand-logo img.logo-nav {
        height: 40px;
    }

    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 1.8rem;
    }
}
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 999;
    background-color: var(--primary-orange) !important;
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top i {
    font-size: 2rem;
}

.custom-button {
    background-color: var(--primary-orange) !important;
    transition: background-color 0.3s ease;
}

.custom-button:hover {
    background-color: var(--primary-blue) !important;
}
.card{
    border: 1px #007bff solid;
     border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}
.card:hover{
    border: 1px #FF8C00 solid;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
   transition: transform 0.3s ease-in-out;
}
/* Estilo para que la transición del banner sea suave y lo posicione */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 20px;
    transform: translateY(100%);
    /* Inicialmente oculto */
    transition: transform 0.3s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Estilos para el texto del banner */
.cookie-text p.main-text {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.cookie-text p.sub-text {
    margin: 0;
    font-size: 0.8rem;
    color: #cfd8dc;
    /* blue-grey lighten-4 */
}

/* Estilos para los botones en el banner */
.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Ajustes para pantallas pequeñas */
@media screen and (max-width: 768px) {
    #cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-text {
        margin-bottom: 15px;
    }
}
yle>
        /* Definición de clases para el CUERPO del documento */
        .high-contrast {
            background-color: #000 !important;
            color: #FFFF00 !important;
        }
/* Ajustes para Alto Contraste en elementos de Materialize */
.high-contrast .card-panel {
    background-color: #333 !important;
    border: 1px solid #FFFF00 !important;
}

.high-contrast .grey-text {
    color: #FFF !important;
}

.high-contrast .indigo-text {
    color: #FFFF00 !important;
}

.high-contrast .btn,
.high-contrast .btn-floating {
    color: #000 !important;
    background-color: #FFFF00 !important;
}

/* Clases para los 3 niveles de tamaño de texto */
/* Nivel 1 (Default): Base 1rem */
/* Nivel 2 (Medium) */
.text-size-medium {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
}

.text-size-medium h1 {
    font-size: 2.25rem !important;
}

.text-size-medium h2 {
    font-size: 1.875rem !important;
}

/* Nivel 3 (Large) */
.text-size-large {
    font-size: 1.25rem !important;
    line-height: 2rem !important;
}

.text-size-large h1 {
    font-size: 3rem !important;
}

.text-size-large h2 {
    font-size: 2.25rem !important;
}

/* Modo Dislexia: Usa una pila de fuentes más simple y aumenta el espaciado */
.dyslexia-font {
    font-family: 'Verdana', 'Arial', sans-serif !important;
    letter-spacing: 0.05em;
    word-spacing: 0.1em;
}

/* Estilos para la barra lateral flotante (adaptado a Materialize) */
#accessibility-widget {
    /* Posiciona la barra verticalmente al centro de la derecha y la OCULTA PARCIALMENTE */
    top: 50%;
    right: 0;
    position: fixed;
    /* Asegura que la barra flote */
    z-index: 9999;
    transform: translateY(-50%) translateX(40px);
    transition: transform 0.3s ease-in-out;
}

#accessibility-widget:hover {
    transform: translateY(-50%) translateX(0);
    /* Muestra completamente al pasar el ratón */
}

#accessibility-bar {
    background-color: #283593;
    /* Materialize Indigo Darken-3 */
    padding: 8px;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Estilo base para botones flotantes Materialize */
.accessibility-icon-btn {
    width: 48px;
    height: 48px;
    background-color: #fff;
    color: #283593;
    /* Indigo Darken-3 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
    /* Aplicamos estilo de botón flotante de Materialize */
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.accessibility-icon-btn:hover {
    transform: scale(1.05);
}

/* Clase para indicar un estado activo */
.accessibility-icon-btn.active {
    background-color: #ffb300 !important;
    /* Materialize Amber Darken-1 */
    color: #283593 !important;
    box-shadow: 0 0 10px rgba(255, 179, 0, 0.7);
}