﻿/* ===================================
   SOLUCIONES ATLÃNTICO - CUSTOM STYLES
   =================================== */

/* Variables CSS */
:root {
    --primary-color: #1E3A8A;
    --primary-dark: #0F172A;
    --accent-color: #10B981;
    --light-bg: #F1F5F9;
    --white: #FFFFFF;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Utilidades */
.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    background: var(--primary-dark) !important;
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--white) !important;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.btn-cta {
    background: var(--accent-color) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px !important;
    margin-left: 1rem !important;
}

.btn-cta:hover {
    background: #059669 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-buttons .btn-primary {
    background: var(--accent-color);
    border: none;
}

.hero-buttons .btn-primary:hover {
    background: #059669;
}

.hero-illustration {
    text-align: center;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Animaciones de entrada */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   SECTION HEADERS
   =================================== */
.section-header h2 {
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-header .lead {
    color: var(--text-muted);
}

/* ===================================
   SERVICE CARDS
   =================================== */
.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(5deg) scale(1.1);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-card h3 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin: 0;
}

/* ===================================
   PORTFOLIO CARDS
   =================================== */
.portfolio-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 3rem;
    text-align: center;
    color: var(--white);
}

.portfolio-image i {
    font-size: 5rem;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.portfolio-content .badge {
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* ===================================
   PROCESS STEPS
   =================================== */
.process-step {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--light-bg);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.process-step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

.step-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.process-step h3 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-image {
    text-align: center;
    font-size: 20rem;
    color: var(--light-bg);
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
    transition: var(--transition);
}

.stat-box:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.stat-box:hover h3 {
    color: var(--white) !important;
}

.stat-box:hover p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ===================================
   TESTIMONIALS
   =================================== */
.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-left: 4px solid var(--accent-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stars i {
    color: #FCD34D;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author strong {
    color: var(--primary-dark);
    font-weight: 700;
}

/* ===================================
   FAQ ACCORDION
   =================================== */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border-radius: 12px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--white);
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid2" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid2)"/></svg>');
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-buttons .btn {
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   CONTACT FORM
   =================================== */
.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--light-bg);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #EF4444;
}

.invalid-feedback {
    color: #EF4444;
    font-size: 0.875rem;
}

#formMessage {
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

#formMessage.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
    display: block;
}

#formMessage.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #EF4444;
    display: block;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer h5,
.footer h6 {
    color: var(--white);
    font-weight: 700;
}

.footer-logo {
    height: 35px;
    width: auto;
    vertical-align: middle;
}

.footer p.text-muted {
    color: var(--white) !important;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer a.text-muted {
    color: var(--white) !important;
    text-decoration: none;
    transition: var(--transition);
}

.footer a.text-muted:hover {
    color: var(--accent-color) !important;
}

.footer .text-muted {
    color: var(--white) !important;
}

/* ===================================
   FLOATING WHATSAPP BUTTON
   =================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: var(--white);
    transform: scale(1.1);
}

@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);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-illustration {
        font-size: 10rem;
        margin-top: 3rem;
    }

    .about-image {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-illustration {
        font-size: 8rem;
    }

    .service-card,
    .portfolio-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .about-image {
        font-size: 6rem;
        margin-bottom: 2rem;
    }

    .step-number {
        font-size: 2rem;
    }

    .step-icon {
        width: 80px;
        height: 80px;
    }

    .step-icon i {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

/* ===================================
   UTILITIES
   =================================== */
.bg-light {
    background-color: var(--light-bg) !important;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #059669;
    border-color: #059669;
}

.text-primary {
    color: var(--primary-color) !important;
}
