/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #00a86b;
    --accent-color: #ff6b35;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navegación */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/maracaibo-el-lago-maracaibo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.75) 0%, rgba(0, 168, 107, 0.75) 100%);
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn i {
    margin-right: 8px;
}

/* Secciones de Registro */
.register-section {
    padding: 80px 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.register-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.85) 100%);
    z-index: 0;
}

.register-section .container {
    position: relative;
    z-index: 1;
}

.volunteer-section {
    background-image: url('../img/Puente-sobre-el-lago-960x640.png');
    /* Imagen del Puente sobre el Lago de Maracaibo para voluntarios */
}

.company-section {
    background-image: url('../img/General_Rafael_Urdaneta_Bridge_view_from_the_lake_to_Cabimas_side.jpg');
    /* Imagen del Puente General Rafael Urdaneta desde el lago para empresas */
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.section-header h2 i {
    margin-right: 10px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Tarjetas de Registro con Imágenes */
.register-card-link {
    text-decoration: none;
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.register-card-image {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volunteer-card {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.7) 0%, rgba(0, 168, 107, 0.7) 100%),
        url('../img/Puente-sobre-el-lago-960x640.png') center/cover;
}

.company-card {
    background: linear-gradient(135deg, rgba(0, 168, 107, 0.7) 0%, rgba(255, 107, 53, 0.7) 100%),
        url('../img/General_Rafael_Urdaneta_Bridge_view_from_the_lake_to_Cabimas_side.jpg') center/cover;
}

.register-card-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.register-card-image:hover .card-image-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.card-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.card-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.card-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.card-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.card-link-text {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50px;
    transition: var(--transition);
}

.register-card-image:hover .card-link-text {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.05);
}

.register-card-image:hover .card-link-text i {
    transform: translateX(5px);
}

.card-link-text i {
    margin-left: 8px;
    transition: var(--transition);
}

/* Estilos para formularios (en páginas de registro) */
.register-card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group select[multiple] {
    min-height: 100px;
}

.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Validación de Errores */
.form-group input.error-input,
.form-group textarea.error-input,
.form-group select.error-input {
    border-color: #ff4d4d !important;
    background-color: #fffafa !important;
}

.form-group input.error-input:focus,
.form-group textarea.error-input:focus,
.form-group select.error-input:focus {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2) !important;
}

.form-group .error-message {
    color: #ff4d4d !important;
    font-size: 0.85rem !important;
    margin-top: 0.4rem !important;
    font-weight: 600 !important;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* File Upload */
.file-upload-container {
    margin-top: 0.5rem;
}

.file-upload-container input[type="file"] {
    display: none;
}

.file-upload-label {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.file-upload-label:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.file-upload-label i {
    margin-right: 8px;
}

.image-preview {
    margin-top: 1rem;
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    object-fit: cover;
}

.preview-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Form Sections */
.form-section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.form-section-title:first-child {
    margin-top: 0;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 168, 107, 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-box i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.info-box p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

/* Sección de Proyectos */
.projects-section {
    padding: 80px 0;
    background: var(--light-color);
}

.projects-carousel-container {
    margin-bottom: 4rem;
}

.carousel-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.carousel-title i {
    margin-right: 10px;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.projects-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 10px 0;
}

.projects-carousel::-webkit-scrollbar {
    display: none;
}

.project-card {
    min-width: 300px;
    max-width: 300px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card.placeholder {
    opacity: 0.6;
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.project-image i {
    position: relative;
    z-index: 2;
}

.project-content {
    padding: 1.5rem;
}

.project-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
}

.project-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .register-card {
        padding: 2rem 1.5rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .project-card {
        min-width: 250px;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.2rem;
    }

    .nav-brand i {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-large {
        padding: 12px 30px;
        font-size: 1rem;
    }
}