/* ============================================
   CÍRCULO TRIBUTARIO & PATRIMONIAL
   Estilos Modernos - Versión Final
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a4273;
    --primary-dark: #062d50;
    --primary-light: #3a6b9e;
    --secondary: #99ccff;
    --accent: #ffc107;
    --text-dark: #1a2a3a;
    --text-light: #6c757d;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 32px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background: white;
    line-height: 1.5;
    color: #333;
    overflow-x: hidden;
}

/* ========== ANIMACIONES ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes zoomIn {
    from { transform: scale(1.1); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.reveal {
    opacity: 0;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
}

.reveal.fadeInUp { animation-name: fadeInUp; }
.reveal.fadeInLeft { animation-name: fadeInLeft; }
.reveal.fadeInRight { animation-name: fadeInRight; }

/* ========== HEADER ========== */
.header {
    background: var(--primary);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.site-logo img {
    height: 50px;
    transition: var(--transition);
}

.site-logo img:hover {
    transform: scale(1.02);
}

.main-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-link {
    background: none;
    border: none;
    color: white;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    transition: var(--transition);
    font-size: 0.9rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

.highlight {
    background: rgba(255, 193, 7, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    color: gold !important;
}

.highlight::after {
    display: none;
}

/* ========== HERO CON VIDEO ========== */
.hero-video {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,66,115,0.85) 0%, rgba(6,45,80,0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 20px;
    max-width: 900px;
    animation: zoomIn 1s ease;
}

.hero-logo {
    max-width: 450px;
    width: 90%;
    margin-bottom: 30px;
    animation: pulse 3s infinite;
}

.hero-content h3 {
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 400;
}

/* ========== PÁGINAS ========== */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    padding: 60px 20px;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

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

/* ========== CARDS ========== */
.agent-item, .service-card, .job-card, .contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-medium);
}

.agent-item:hover, .service-card:hover, .job-card:hover, .contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.agent-item i, .service-card i, .contact-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.agent-item h4, .service-card h4, .job-card h3, .contact-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.agent-item p, .service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== BENEFICIOS Y VENTAJAS ========== */
.benefits-section, .advantages-section {
    margin-top: 60px;
}

.benefits-section h2, .advantages-section h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.benefits-grid, .advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-item, .advantage-item {
    background: var(--gray-light);
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.benefit-item:hover, .advantage-item:hover {
    transform: translateY(-5px);
    background: var(--secondary);
    color: var(--primary-dark);
}

.benefit-item i, .advantage-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* ========== SERVICIOS GRID ========== */
.services-grid, .jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    text-align: center;
    cursor: pointer;
}

.btn-ver-mas {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-ver-mas:hover {
    color: var(--accent);
}

/* ========== BOLSA DE TRABAJO ========== */
.job-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.job-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.job-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.job-btn:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========== CONTACTO ========== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    text-align: center;
}

.contact-central {
    text-align: center;
    background: var(--gray-light);
    padding: 35px;
    border-radius: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.contact-central i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-central a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-central a:hover {
    color: var(--accent);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-widget h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--secondary);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a, .nav-link-footer {
    color: var(--gray-medium);
    text-decoration: none;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.footer-widget a:hover, .nav-link-footer:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: white;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

.copyright span {
    cursor: pointer;
    transition: var(--transition);
}

.copyright span:hover {
    color: var(--secondary);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(37,211,102,0.4);
    transition: all 0.3s ease;
    z-index: 1500;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20b859;
    animation: none;
}

.whatsapp-float i {
    font-size: 35px;
    color: white;
}

/* ========== MODALES ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    max-width: 90%;
    width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 35px;
    border-radius: 25px;
    animation: fadeInUp 0.4s ease;
}

.modal-content h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.modal-content p, .modal-content li {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 12px;
}

.modal-content ul, .modal-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.modal-close {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 40px;
    cursor: pointer;
    margin-top: 20px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary-dark);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero-content h3 { font-size: 1.1rem; }
    .page-header h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    .main-menu {
        justify-content: center;
        gap: 15px;
    }
    .hero-video { height: 70vh; min-height: 500px; }
    .hero-logo { max-width: 280px; }
    .hero-content h3 { font-size: 1rem; }
    .container { padding: 40px 20px; }
    .row { grid-template-columns: 1fr; }
    .benefits-section h2, .advantages-section h2 { font-size: 1.6rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .whatsapp-float { width: 55px; height: 55px; bottom: 20px; right: 20px; }
    .whatsapp-float i { font-size: 28px; }
}

@media (max-width: 480px) {
    .main-menu { gap: 10px; }
    .nav-link { font-size: 0.75rem; }
    .highlight { padding: 5px 10px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
}