/* common-styles.css - Estilos comunes para todas las páginas */

/* Variables CSS */
:root {
    --primary: #1a1a1a;
    --secondary: #ffffff;
    --accent: #c9a961;
    --gray-light: #f8f8f8;
    --gray-medium: #e0e0e0;
    --gray-dark: #666666;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos base */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background: var(--secondary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

header.scrolled .header-content {
    height: 65px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 45px;
    width: auto;
    transition: height 0.3s ease;
}

.logo-text {
    height: 35px;
    width: auto;
    transform: scale(0.7);
    transform-origin: left;
    transition: all 0.3s ease;
}

header.scrolled .logo-icon {
    height: 35px;
}

header.scrolled .logo-text {
    height: 28px;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
    transition: gap 0.3s ease;
}

header.scrolled nav ul {
    gap: 35px;
}

nav > ul > li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

header.scrolled nav a {
    font-size: 14px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

nav a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    box-shadow: var(--shadow);
    border-radius: 4px;
    padding: 20px 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
}

nav li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown a {
    display: block;
    padding: 10px 30px;
    white-space: nowrap;
}

.dropdown a::after {
    display: none;
}

.dropdown a:hover {
    background: var(--gray-light);
}

/* Contact Button */
.contact-nav {
    background: var(--primary);
    color: var(--secondary);
    padding: 12px 30px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 15px;
}

header.scrolled .contact-nav {
    padding: 10px 25px;
    font-size: 14px;
}

.contact-nav:hover {
    background: var(--accent);
    color: var(--secondary);
}

.contact-nav::after {
    display: none;
}

/* Language Selector */
.language-selector {
    position: relative;
    margin-left: 20px;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

header.scrolled .current-language {
    padding: 6px 14px;
    font-size: 13px;
}

.current-language:hover {
    background: var(--gray-medium);
}

.current-language img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    transition: all 0.3s ease;
}

header.scrolled .current-language img {
    width: 20px;
    height: 15px;
}

.current-language svg {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

header.scrolled .current-language svg {
    width: 14px;
    height: 14px;
}

.language-selector.active .current-language svg {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--secondary);
    border-radius: 4px;
    box-shadow: var(--shadow);
    list-style: none;
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
}

.language-dropdown li:hover {
    background: var(--gray-light);
}

.language-dropdown li.active {
    background: var(--gray-light);
    font-weight: 600;
}

.language-dropdown li img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* Footer Styles */
footer {
    background: var(--primary);
    color: var(--secondary);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--secondary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.8;
}

/* Floating Form Button */
.floating-form-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: var(--secondary);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    font-weight: 500;
    font-size: 15px;
    animation: pulse 2s infinite;
}

.floating-form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.5);
    background: #b39755;
    animation: none;
}

.floating-form-btn svg {
    flex-shrink: 0;
}

@keyframes pulse {
    0% { box-shadow: 0 5px 20px rgba(201, 169, 97, 0.4); }
    50% { box-shadow: 0 5px 30px rgba(201, 169, 97, 0.6); }
    100% { box-shadow: 0 5px 20px rgba(201, 169, 97, 0.4); }
}

/* Form Modal */
.form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.form-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.form-modal-content {
    position: relative;
    background: var(--secondary);
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--gray-dark);
    transition: all 0.3s ease;
    z-index: 1;
}

.form-close-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.form-header {
    text-align: center;
    padding: 40px 40px 30px;
    border-bottom: 1px solid var(--gray-medium);
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: var(--primary);
}

.form-header p {
    color: var(--gray-dark);
    font-size: 1rem;
}

.event-form {
    padding: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.btn-submit {
    background: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 15px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.form-note {
    color: var(--gray-dark);
    font-size: 13px;
    margin: 0;
}

.form-success {
    display: none;
    text-align: center;
    padding: 60px 40px;
}

.form-success.active {
    display: block;
}

.form-success svg {
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.form-success p {
    color: var(--gray-dark);
}

/* Utility Classes */
.btn-primary {
    background: var(--primary);
    color: var(--secondary);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 15px 40px;
    text-decoration: none;
    border: 2px solid var(--primary);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--secondary);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Common Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--secondary);
        flex-direction: column;
        padding: 50px 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        left: 0;
    }

    .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0;
        margin-left: 20px;
    }

    .mobile-menu {
        display: flex;
    }

    .logo-text {
        display: none;
    }
    
    .language-selector {
        position: fixed;
        top: 90px;
        right: 20px;
        z-index: 999;
    }
    
    .current-language {
        background: var(--secondary);
        box-shadow: var(--shadow);
    }

    .floating-form-btn {
        width: 60px;
        height: 60px;
        padding: 0;
        justify-content: center;
    }
    
    .floating-form-btn span {
        display: none;
    }

    .form-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .form-header,
    .event-form {
        padding: 30px 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 20px;
    }
    
    .btn-submit {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}