/*
  Theme Name: RR Consultores - Optimizado
  Description: Consultoría Contable y Tributaria en Bogotá
  Version: 2.0
  Author: RR Consultores + Optimización SEO
*/

/***********************************
************************************
GENERAL
************************************
***********************************/

* {
    box-sizing: border-box;
}

body {
    font-family: 'PT Serif', serif;
    line-height: 1.8;
    color: #818181;
    margin: 0;
    padding: 0;
}

a {
    color: #00bfff;
    transition: all 0.3s ease;
    text-decoration: none;
}

a:hover,
a:active,
a:focus {
    color: #00a7d5;
    outline: none;
    text-decoration: none;
}

p {
    padding: 0;
    margin: 0 0 15px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'PT Serif', serif;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding: 0;
    color: #333;
}

.section-padding {
    padding: 60px 0px;
}

/* Optimización de imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container mejorado */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/***********************************
************************************
NAVBAR
************************************
***********************************/

.navbar-default {
    background-color: transparent;
    border: 0;
    padding: 20px 0;
    transition: all 0.3s ease;
    min-height: auto;
}

.navbar-brand {
    padding: 5px 15px;
    width: 200px;
    height: auto;
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:focus,
.navbar-default .navbar-nav>.active>a:hover {
    color: #00bfff;
    background-color: transparent;
}

.navbar-default .navbar-nav>li>a {
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.navbar-default .navbar-nav>li>a:focus,
.navbar-default .navbar-nav>li>a:hover {
    color: #00bfff;
    background-color: transparent;
}

.navbar-default.nav-color {
    background-color: rgba(34, 34, 34, 0.95);
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

/* Mobile navbar improvements */
.navbar-toggle {
    border: 2px solid #00bfff;
    background-color: transparent;
}

.navbar-toggle .icon-bar {
    background-color: #00bfff;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background-color: rgba(0, 191, 255, 0.1);
}

/***********************************
************************************
HEADER & BANNER
************************************
***********************************/

.header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('../img/1.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.bg-color {
    background-color: rgba(0, 0, 0, 0.3);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 120px 0 60px;
}

.banner-info {
    color: #fff;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.h1-principal {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 25px;
    line-height: 1.2;
}

.sub-h1 {
    color: #fff;
    font-size: 1.3rem;
    margin: 20px 0 40px 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    line-height: 1.6;
    font-weight: 400;
}

.hero-buttons {
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    border-radius: 50px;
    padding: 15px 35px;
    font-size: 16px;
    margin: 8px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background-color: #00bfff;
    border-color: #00bfff;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #00a7d5;
    border-color: #00a7d5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #fff;
    color: #00bfff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

/***********************************
************************************
NOSOTROS & SERVICIOS
************************************
***********************************/

#nosotros {
    padding: 80px 0;
    background-color: #fff;
}

#servicios {
    background-color: #f8f8f8;
    padding: 80px 0;
}

.service-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.mision-vision-title {
    font-size: 1.8rem;
    color: #00bfff;
    margin-bottom: 20px;
    font-weight: 700;
}

.sub-title {
    font-size: 1.1rem;
    color: #818181;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.bottom-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00bfff, #00a7d5);
    margin: 20px auto 40px;
    border-radius: 2px;
}

.service-item {
    margin-bottom: 30px;
    text-align: center;
}

.service-item h3,
.service-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.service-item h3 span,
.service-item h4 span {
    color: #00bfff;
    font-size: 1.8rem;
    font-weight: 900;
}

.wrap-item {
    background: #fff;
    padding: 35px 25px;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.wrap-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00bfff, #00a7d5);
    transition: all 0.3s ease;
}

.wrap-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.wrap-item:hover::before {
    left: 0;
}

.wrap-item .item-img {
    margin-bottom: 25px;
}

.wrap-item .item-img img {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0,191,255,0.3));
    transition: all 0.3s ease;
}

.wrap-item:hover .item-img img {
    transform: scale(1.1);
}

.wrap-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
}

.wrap-item p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

/***********************************
************************************
CONTACTO
************************************
***********************************/

#contact {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
}

#contact::before {
    content: '';
    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 1000 1000"><polygon fill="rgba(0,191,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

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

#contact .service-title {
    color: #fff;
}

.white-bg {
    background-color: #00bfff;
}

.loction-info {
    padding: 20px 0;
}

.loction-info h3 {
    color: #00bfff;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.loction-info p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
}

.loction-info .fa {
    color: #00bfff;
    margin-right: 15px;
    margin-top: 5px;
    min-width: 20px;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #00bfff;
    text-decoration: none;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form h3 {
    color: #00bfff;
    margin-bottom: 25px;
    text-align: center;
}

.contact-form .form-control {
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #00bfff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
    outline: none;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form select.form-control {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.contact-form select.form-control option {
    background: #333;
    color: #fff;
}

.contact-form .btn-submit {
    background: linear-gradient(135deg, #00bfff, #00a7d5);
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.contact-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
}

#sendmessage, #errormessage {
    color: white;
    background: #00bfff;
    border: 1px solid #00bfff;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    border-radius: 8px;
}

#errormessage {
    background: #e74c3c;
    border: 1px solid #e74c3c;
}

/***********************************
************************************
WHATSAPP FLOTANTE
************************************
***********************************/

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    text-decoration: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/***********************************
************************************
FOOTER
************************************
***********************************/

#footer {
    padding: 30px 0;
    background: #222;
    color: #fff;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: #00bfff;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00a7d5;
}

.credits {
    font-size: 14px;
    color: #999;
}

.credits a {
    color: #00bfff;
}

.credits a:hover {
    color: #00a7d5;
}

/***********************************
************************************
LOADER
************************************
***********************************/

.loader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #00bfff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .h1-principal {
        font-size: 2.8rem;
    }
    
    .sub-h1 {
        font-size: 1.2rem;
    }
    
    .service-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .h1-principal {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .sub-h1 {
        font-size: 1.1rem;
        margin: 15px 0 30px 0;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 16px;
        margin: 5px;
        display: block;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        margin-top: 25px;
    }
    
    .service-title {
        font-size: 1.8rem;
    }
    
    .mision-vision-title {
        font-size: 1.5rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .wrap-item {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .wrap-item h3 {
        min-height: auto;
        font-size: 1.1rem;
    }
    
    .contact-form {
        margin-top: 30px;
        padding: 25px 20px;
    }
    
    .loction-info p {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .loction-info .fa {
        margin-bottom: 5px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 25px;
        bottom: 15px;
        right: 15px;
    }
    
    .header {
        background-attachment: scroll;
        min-height: 100vh;
    }
    
    .wrapper {
        padding: 100px 0 40px;
    }
}

@media (max-width: 576px) {
    .h1-principal {
        font-size: 1.8rem;
    }
    
    .sub-h1 {
        font-size: 1rem;
    }
    
    .service-title {
        font-size: 1.6rem;
    }
    
    .wrap-item {
        padding: 20px 15px;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/***********************************
************************************
OPTIMIZACIONES DE PERFORMANCE
************************************
***********************************/

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Mejoras de accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states mejorados */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid #00bfff;
    outline-offset: 2px;
}

/* Optimización de fuentes */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .whatsapp-float,
    .navbar,
    #footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: 100%;
    }
}