/* ============================================
   ASESORÍA PABLO ARANDA - STYLESHEET
   Profesional, elegante y responsive
   ============================================ */

/* ============================================
   RESET Y VARIABLES
   ============================================ */

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

:root {
    /* Colores corporativos */
    --primary-color: #1e3a8a;        /* Azul marino oscuro */
    --primary-light: #3b82f6;        /* Azul medio */
    --primary-dark: #1e40af;         /* Azul marino más oscuro */
    --secondary-color: #64748b;      /* Gris medio */
    --accent-color: #0ea5e9;         /* Azul claro para acentos */
    
    /* Colores de fondo */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Colores de texto */
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --text-white: #ffffff;
    
    /* Tipografía */
    --font-primary: 'Open Sans', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transiciones */
    --transition: all 0.3s ease;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */

.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: var(--transition);
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--text-white);
    padding: 8rem var(--spacing-md) 5rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    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="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,133.3C672,117,768,107,864,122.7C960,139,1056,181,1152,181.3C1248,181,1344,139,1392,117.3L1440,96L1440,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;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-xs);
    opacity: 0.95;
}

.hero-tagline {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

.hero-services {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap;
}

.hero-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    min-width: 120px;
}

.hero-service-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.hero-service-item i {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.hero-service-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #0284c7;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

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

.btn-full {
    width: 100%;
}

/* ============================================
   TRUST SECTION
   ============================================ */

.trust-section {
    background-color: var(--bg-white);
    padding: var(--spacing-xl) var(--spacing-md);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.trust-item {
    text-align: center;
    padding: var(--spacing-md);
    transition: var(--transition);
}

.trust-item:hover {
    transform: translateY(-5px);
}

.trust-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.trust-item h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.trust-item p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto var(--spacing-sm);
    border-radius: 2px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    background-color: var(--bg-light);
    padding: var(--spacing-xl) var(--spacing-md);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-medium);
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.about-text p {
    margin-bottom: var(--spacing-sm);
}

.about-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.about-features {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.feature i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.feature span {
    color: var(--text-dark);
    font-weight: 500;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.about-card i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.about-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
    background-color: var(--bg-white);
    padding: var(--spacing-xl) var(--spacing-md);
}

.service-area {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.service-area:last-of-type {
    margin-bottom: var(--spacing-lg);
}

.service-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 2rem;
    color: var(--text-white);
}

.service-title-block h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.service-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
}

.service-intro {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    padding-left: 86px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.service-item {
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-item h4 {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.service-item h4 i {
    font-size: 1.25rem;
}

.service-item ul {
    list-style: none;
    padding-left: 0;
}

.service-item ul li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.service-item ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.services-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: 12px;
}

.services-cta p {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    background-color: var(--bg-light);
    padding: var(--spacing-xl) var(--spacing-md);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-info-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-info-item:hover {
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--text-white);
}

.contact-details h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-medium);
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-checkbox {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-xs);
}

.form-checkbox input {
    width: auto;
    margin: 0;
}

.form-checkbox label {
    margin: 0;
    font-weight: 400;
    font-size: 0.875rem;
}

.form-message {
    padding: var(--spacing-sm);
    border-radius: 6px;
    margin-top: var(--spacing-sm);
    display: none;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    display: block;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

/* Map Container */
.map-container {
    margin-top: var(--spacing-xl);
}

.map-container h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-white);
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-white);
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.95rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: #94a3b8;
}

.footer-contact li i {
    color: var(--accent-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent-color);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.scroll-top.visible {
    display: flex;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        max-height: 400px;
    }
    
    .nav-link {
        padding: var(--spacing-sm);
        width: 100%;
        text-align: center;
    }
    
    .hero {
        padding: 6rem var(--spacing-sm) 3rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-services {
        gap: var(--spacing-sm);
    }
    
    .hero-service-item {
        min-width: 100px;
        padding: var(--spacing-xs);
    }
    
    .hero-service-item i {
        font-size: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .btn {
        width: 100%;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .service-intro {
        padding-left: 0;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
    }
    
    .service-title-block h3 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .service-area {
        padding: var(--spacing-sm);
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .hero-cta,
    .scroll-top,
    .contact-form-wrapper {
        display: none;
    }
    
    body {
        color: #000;
    }
    
    .hero {
        background: none;
        color: #000;
    }
}