/* * SYNERGYPOWER PREMIUM STYLES V14.0
 * Project: Group Legal
 * Theme: Navy Blue & Gold | Typography: Roboto
 * V1.4 - CSS Hero Animation, Pro Team Cards, Form Updates
 */

/* 1. IMPORTACIÓN DE FUENTES */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* 2. VARIABLES DE DISEÑO (PALETA) */
:root {
    --primary-blue: #0056A8;
    --primary-gold: #D4A74A;
    --gold-hover: #F0C46B;
    --bg-dark: #0F1B2E;
    --bg-darker: #0a121f;
    --text-white: #ffffff;
    --text-gray: #e0e0e0;
    --text-header: #0F1B2E;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(212, 167, 74, 0.3);
    --font-main: 'Roboto', sans-serif;
}

/* 3. RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* 4. TIPOGRAFÍA */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.text-gold { color: var(--primary-gold); }
.text-white { color: var(--text-white); }

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gold);
}

/* 5. COMPONENTES: BOTONES & GLASSMORPHISM */
.btn-gold {
    background: linear-gradient(45deg, var(--primary-gold), #b88a32);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 167, 74, 0.3);
    display: inline-block;
    border: none;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 167, 74, 0.5);
    background: linear-gradient(45deg, #b88a32, var(--primary-gold));
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-outline:hover {
    background: var(--primary-gold);
    color: white;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

select option {
    background: #fff;
    color: #333;
}

/* 6. HEADER & NAV */
.top-bar {
    background: var(--primary-blue);
    color: white;
    height: auto;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    position: relative;
    z-index: 1001;
    font-weight: 500;
    padding: 5px 0;
}

.top-bar a { color: white; }
.top-bar a:hover { color: var(--gold-hover); }

.contact-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    background: rgba(0,0,0,0.1);
    padding: 2px 10px;
    border-radius: 4px;
}

.main-header {
    position: fixed;
    top: auto; /* Se ajusta con JS o CSS */
    margin-top: 40px; /* Espacio para TopBar */
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 15px 0;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.main-header.scrolled {
    margin-top: 0;
    top: 0;
    padding: 10px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 50px; transition: 0.3s; }

.nav-menu { display: flex; gap: 30px; }
.nav-link {
    color: var(--text-header);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-gold);
    transition: width 0.3s;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--primary-gold); }

/* 7. HERO SECTION & ANIMACIÓN TEXTO CSS */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* Ajuste para que empiece debajo del header fijo */
    padding-top: 60px; 
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 27, 46, 0.8);
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
    font-weight: 900;
}

/* CARRUSEL CSS PURO */
.hero-services-carousel {
    font-size: 2.5rem;
    color: var(--primary-gold);
    font-weight: 300;
    margin-top: 10px;
    margin-bottom: 30px;
    height: 4rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.hero-service-item {
    position: absolute;
    width: 100%;
    left: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: rotateText 12s infinite;
}

.hero-service-item:nth-child(1) { animation-delay: 0s; }
.hero-service-item:nth-child(2) { animation-delay: 3s; }
.hero-service-item:nth-child(3) { animation-delay: 6s; }
.hero-service-item:nth-child(4) { animation-delay: 9s; }

@keyframes rotateText {
    0% { opacity: 0; transform: translateY(20px); }
    5% { opacity: 1; transform: translateY(0); }
    20% { opacity: 1; transform: translateY(0); }
    25% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* 8. SERVICIOS GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 80px 0;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

/* 9. TEAM SECTION PRO (NUEVAS TARJETAS) */
.team-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 50px;
}

.team-card {
    flex: 0 1 350px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: rgba(15, 27, 46, 0.8);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.team-card:hover { transform: translateY(-5px); }

.team-header {
    padding: 30px 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to bottom, rgba(255,255,255,0.02), transparent);
}

.team-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    margin-bottom: 15px;
    overflow: hidden;
}

.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-info {
    padding: 10px 20px 30px;
    text-align: center;
    width: 100%;
}

.team-name { font-size: 1.4rem; color: var(--text-white); margin-bottom: 5px; }
.team-role { color: var(--primary-gold); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.team-license { color: var(--text-gray); font-size: 0.85rem; font-style: italic; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; display: block; }

.team-contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-gray);
    width: 100%;
}

.team-contact-row i {
    color: var(--primary-gold);
    width: 25px;
    text-align: center;
    margin-right: 5px;
}

.team-contact-row a { color: var(--text-gray); }
.team-contact-row a:hover { color: var(--text-white); }

/* 10. ELEMENTOS FLOTANTES */
.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.social-sidebar a {
    color: var(--text-white);
    font-size: 1.2rem;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.social-sidebar a:hover {
    background: var(--primary-gold);
    color: #fff;
    transform: translateX(5px);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: #fff;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20bd5a;
}

/* 11. FOOTER PRO (4 COLUMNAS) */
.main-footer {
    background-color: var(--bg-darker);
    padding-top: 80px;
    margin-top: 50px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul { line-height: 2.2; }
.footer-col a { color: var(--text-gray); transition: 0.3s; }
.footer-col a:hover { color: var(--primary-gold); padding-left: 5px; }

.footer-contact-list li {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.footer-contact-list i {
    color: var(--primary-gold);
    margin-right: 15px;
    margin-top: 5px;
}

.footer-bottom-pro {
    background: #050a12;
    padding: 25px 0;
    border-top: 1px solid rgba(212, 167, 74, 0.1);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social-bottom a {
    color: var(--text-gray);
    margin-left: 20px;
    font-size: 1.1rem;
    transition: 0.3s;
}
.footer-social-bottom a:hover { color: var(--primary-gold); }

/* KEYFRAMES */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}