/* Estilos base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f0f0f0, #ffffff);
    color: #333;
    padding: 20px;
    background-image: url('tu-imagen.jpg');
}

/* Títulos */
h1 {
    font-size: 2.5rem; /* Mayor tamaño */
    text-align: center;
    margin-top: 20px;
    border-bottom: 2px solid #ccc;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px; /* Espaciado de letras */
}

h2 {
    font-size: 2rem; /* Mayor tamaño */
    margin-top: 15px;
    border-bottom: 1px solid #ccc;
    color: #555;
}

/* Párrafos */
p {
    text-align: justify; /* Justificar texto */
    margin: 20px;
    line-height: 1.6; /* Espaciado entre líneas */
}

/* Listas */
ul {
    list-style-type: square;
    margin: 20px 0;
    padding-left: 20px;
}

/* Enlaces */
a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold; /* Negrita para enlaces */
}

a:hover {
    text-decoration: underline;
    color: #0056b3; /* Color al pasar el mouse */
}

/* Menú flotante */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(51, 51, 51, 0.9);
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.navbar:hover {
    background: rgba(51, 51, 51, 1);
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    color: #f9a03f;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.2s;
}

.nav-list li a:hover {
    color: #fff;
    transform: scale(1.05);
}

/* Efecto de subrayado */
.nav-list li a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #f9a03f;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-list li a:hover::after {
    width: 100%;
    left: 0;
}

/* Secciones */
section {
    padding: 50px 20px;
    margin-top: 50px;
    border-bottom: 1px solid #e0e0e0;
    background: rgba(255, 255, 255, 0.9); /* Fondo de sección con opacidad */
    border-radius: 8px; /* Esquinas redondeadas */
}

/* Estilo para el ícono flotante de Gmail */
.icono-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.icono-flotante:hover {
    transform: scale(1.2);
}

.icono-flotante img {
    width: 100%;
    height: 100%;
}

/* Formularios */
form {
    max-width: 600px;
    margin: 0 auto;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Botones */
.btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s, box-shadow 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    opacity: 0.8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Video */
#video {
    text-align: center;
    margin-top: 50px;
}

video {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
}

/* Estilos generales para dispositivos móviles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-list li {
        padding: 10px;
    }

    section {
        padding: 30px 15px; /* Menor espacio en móviles */
    }

    .icono-flotante {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
    }

    form {
        width: 100%;
        padding: 10px;
    }

    input, textarea {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem; /* Ajustar tamaño de título */
    }

    h2 {
        font-size: 1.5rem; /* Ajustar tamaño de subtítulo */
    }
}

/* Nuevos estilos agregados */
.naranja {
    background: #f9a03f;
}

/* Estilo de tablas */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Estilo de footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    position: relative;
}

footer a {
    color: #f9a03f;
}

footer a:hover {
    text-decoration: underline;
}

/* Estilo de notificaciones */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Estilo de carga (Loader) */
.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animación de aparición */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Estilos de tarjetas */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 15px 0;
    transition: transform 0.2s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Sombras globales */
* {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Iconos */
.icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

/* Efectos de hover avanzados */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Estilos de tema claro y oscuro */
:root {
    --primary-color: #007bff;
    --secondary-color: #f9a03f;
}

body[data-theme='dark'] {
    background: #121212;
    color: #ffffff;
}

body[data-theme='dark'] a {
    color: #bb86fc;
}

/* Estilos para botones secundarios */
.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Estilos para tarjetas de perfil */
.profile-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 10px 0;
}

.profile-card img {
    border-radius: 50%;
    margin-right: 15px;
}

/* Estilos de acordeón */
.accordion {
    background: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-content {
    padding: 0 10px;
    display: none; /* Oculta contenido por defecto */
}

/* Mostrar contenido de acordeón */
.accordion-content.active {
    display: block; /* Muestra contenido activo */
}

/* Estilos para el carrusel */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    transition: opacity 0.5s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px;
    cursor: pointer;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Botón de volver arriba */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#backToTop:hover {
    background-color: #0056b3;
}
