/* 
   Videla Legal — Hoja de Estilos Global
   Look & Feel: Formal, Tecnológico, Digital First, Minimalista
*/

/* Importación de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Variables CSS */
:root {
    --color-bg: #FFFFFF;
    --color-bg-light: #F4F7F6;
    --color-primary: #1F3B4D;
    --color-primary-dark: #122430;
    --color-accent: #2C5E7A;
    --color-accent-light: #3a7596;
    --color-accent-gold: #C5A880; /* Para el destacado de tarifas */
    --color-text: #2D3748;
    --color-text-muted: #718096;
    --color-white: #FFFFFF;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --color-shadow-hover: rgba(0, 0, 0, 0.15);
    
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Estilos Globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--color-primary);
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Contenedor central */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 94, 122, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 94, 122, 0.2);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-white:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Header Glassmorphism */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(31, 59, 77, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(18, 36, 48, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-smooth);
}

header.scrolled .header-container {
    height: 70px;
}

.logo a {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-accent-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Navegación y Menú Desplegable (Dropdown) */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-gold);
    transition: var(--transition-smooth);
}

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

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--color-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    list-style: none;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-title);
    font-weight: 500;
}

.dropdown-item a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    padding-left: 1.5rem;
}

/* Botón menú móvil */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section General */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 36, 48, 0.95) 0%, rgba(31, 59, 77, 0.8) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 750px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Secciones Generales */
.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--color-bg-light);
}

.section-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section-dark h2 {
    color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent-gold);
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* Animación Fade-in Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Grid de Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 20px var(--color-shadow);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.service-card-content {
    padding: 0 2rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--color-shadow-hover);
    border-color: rgba(44, 94, 122, 0.2);
}

.service-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card .btn-link {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card .btn-link:hover {
    color: var(--color-primary);
}

/* Prueba Social (NotCo, Latam, Banderas) */
.social-proof {
    background-color: var(--color-primary-dark);
    padding: 60px 0;
    color: var(--color-white);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.social-proof-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.social-proof-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.social-proof-item {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
}

/* Carrusel de Banderas */
.flag-carousel {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.flag-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.flag-emoji {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Metodología (3 Pasos / Timeline) */
.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    margin-top: 40px;
}

.timeline-card {
    background-color: var(--color-white);
    padding: 3rem 2rem 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 15px var(--color-shadow);
    position: relative;
    overflow: hidden;
}

.timeline-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 6rem;
    font-weight: 800;
    font-family: var(--font-title);
    color: rgba(31, 59, 77, 0.04);
    line-height: 1;
    z-index: 1;
    user-select: none;
}

.timeline-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.timeline-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Página de Servicios Específicas */
.service-header {
    background-color: var(--color-primary);
    padding: 140px 0 80px 0;
    color: var(--color-white);
    text-align: center;
}

.service-header h1 {
    color: var(--color-white);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.service-header p {
    font-size: 1.2rem;
    color: var(--color-accent-gold);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

.service-philosophy {
    padding: 60px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-philosophy-content {
    max-width: 800px;
}

.service-philosophy-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-philosophy-content p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    text-align: justify;
}

.specific-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.specific-service-card {
    background-color: var(--color-bg-light);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.specific-service-card:hover {
    background-color: var(--color-white);
    box-shadow: 0 8px 25px var(--color-shadow);
    border-color: rgba(44, 94, 122, 0.1);
    transform: translateY(-3px);
}

.specific-service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.specific-service-details {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.specific-service-details strong {
    color: var(--color-primary);
}

.specific-service-card .btn {
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

/* Página de Contacto: Tarifas y Agendamiento */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    margin-top: 20px;
}

.pricing-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 15px var(--color-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    height: 100%;
}

.pricing-card.featured {
    border: 2px solid var(--color-accent);
    box-shadow: 0 8px 30px rgba(44, 94, 122, 0.15);
    transform: scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.pricing-time {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-family: var(--font-title);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: bold;
}

/* WhatsApp Banner */
.whatsapp-banner {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 40px 0;
    text-align: center;
}

.whatsapp-banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.whatsapp-banner p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--color-white);
}

.btn-whatsapp:hover {
    background-color: #20BA5A;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Formulario Google Forms e incrustación */
.form-section {
    padding: 80px 0;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-bg-light);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 4px 15px var(--color-shadow);
}

.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 120%; /* Ratio para Google Forms largo */
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Acordeón para Términos y Condiciones */
.terms-section {
    padding: 80px 0;
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.accordion-icon {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content-inner {
    padding: 1rem 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.accordion-content-inner p {
    margin-bottom: 1rem;
}

.accordion-content-inner ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.accordion-content-inner li {
    margin-bottom: 0.5rem;
}

/* Datos de Transferencia */
.transfer-details {
    max-width: 600px;
    margin: 40px auto 0 auto;
    background-color: var(--color-white);
    border: 1px dashed var(--color-accent);
    border-radius: 6px;
    padding: 2rem;
}

.transfer-details h3 {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-align: center;
}

.transfer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    font-size: 0.95rem;
}

.transfer-label {
    font-weight: 600;
    color: var(--color-primary);
}

.transfer-value {
    color: var(--color-text);
}

/* Página Sobre Mí: Split Screen Layout */
.about-section {
    padding-top: 140px;
    padding-bottom: 80px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--color-shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* Enfoque Preventivo: Blockquote */
.preventive-quote {
    background-color: var(--color-bg-light);
    border-left: 4px solid var(--color-accent);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 8px 8px 0;
}

.preventive-quote blockquote {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
}

.preventive-quote cite {
    display: block;
    margin-top: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: normal;
    font-weight: 500;
}

/* Footer Premium */
footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-col p {
    margin-bottom: 0.8rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
}

/* Responsividad (Media Queries) */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .split-layout {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-primary-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem 2rem;
        gap: 1.5rem;
        transition: var(--transition-smooth);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        box-shadow: none;
        border: none;
        padding-left: 1.5rem;
        display: none;
    }
    
    .nav-item:hover .dropdown-menu {
        transform: none;
    }
    
    .nav-item.dropdown-active .dropdown-menu {
        display: block;
    }
    
    .hero {
        padding-top: 140px;
        padding-bottom: 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .services-grid, .timeline, .pricing-grid, .specific-services-grid {
        grid-template-columns: 1fr;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .about-text h1 {
        font-size: 2rem;
    }
}
