/* Estilos generales */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

section {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 60px;
    text-align: center;
}

.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto 0;
}

/* Navegación */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(52, 58, 64, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 15px !important;
    position: relative;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 5px;
    left: 15px;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: calc(100% - 30px);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 180px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1472&q=80') center/cover no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section p.lead {
    font-size: 1.4rem;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    max-width: 700px;
}

/* Hero Section Logo */
.hero-logo {
    max-width: 200px; /* Reduced from 280px */
    height: auto;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for logo */
@media (max-width: 767.98px) {
    .hero-logo {
        max-width: 150px; /* Reduced from 200px */
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 150px 0;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section p.lead {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 130px 0 100px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p.lead {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 15px !important;
    }
}

/* Servicios */
#servicios .card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
}

#servicios .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

#servicios .card-body {
    padding: 30px 20px;
}

#servicios i {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Portafolio */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Testimonios */
#testimonios .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

#testimonios .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#testimonios .card-body {
    padding: 30px;
}

#testimonios img {
    border: 3px solid var(--primary-color);
    margin: 0 auto 20px;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* Contacto */
#contacto {
    position: relative;
    background-color: #f8f9fa;
    overflow: hidden;
}

#contacto .bg-white {
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

#contacto h2 {
    font-weight: 600;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

#contacto h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.contact-form .form-control {
    padding: 0.75rem 0;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #e1e5ee;
    background-color: transparent;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.contact-form .input-group-text {
    border: none;
    background-color: transparent;
    padding-left: 0;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-form .form-control:focus + .input-group-text {
    color: var(--primary-color);
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: none;
}

.contact-form .btn-primary {
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form .btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.contact-form .btn-primary:hover:before {
    width: 100%;
}

/* Remove contact-method styles as they're no longer needed */
.contact-method,
.icon-box,
.contact-method:hover,
.contact-method:hover .icon-box {
    all: unset;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

footer ul li {
    margin-bottom: 10px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    padding-left: 5px;
}

/* Botón ir arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.back-to-top:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--dark-color);
        padding: 15px;
        border-radius: 5px;
        margin-top: 10px;
    }
    
    .hero-section {
        text-align: center;
        padding: 150px 0 80px;
    }
    
    .hero-section p.lead {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 15px !important;
    }
    
    section {
        padding: 60px 0;
    }
    
    #contacto {
        padding: 4rem 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.3rem;
    }
    
    .hero-section p.lead {
        font-size: 1.1rem;
    }
    
    .hero-section {
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-section .btn {
        display: block;
        margin: 10px auto;
        max-width: 200px;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    #nosotros img {
        margin-top: 30px;
    }
    
    #contacto h2 {
        font-size: 1.8rem;
    }
    
    .contact-form .btn-primary {
        width: 100%;
    }
}

/* Efectos de hover en tarjetas de servicios */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Efecto de carga suave */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilos para el formulario de contacto */
#contactForm .form-control {
    border-radius: 5px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#contactForm .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

#contactForm button[type="submit"] {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

#contactForm button[type="submit"]:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sobre Nosotros - Estilo Elegante */
#nosotros {
    position: relative;
    background-color: #f8f9fa;
    overflow: hidden;
}

#nosotros .divider {
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    margin: 1rem auto;
    position: relative;
}

#nosotros .divider:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    opacity: 0.5;
}

#nosotros h2 {
    font-weight: 600;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

#nosotros .lead {
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Tarjetas de características */
#nosotros .d-flex {
    padding: 1.25rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
}

#nosotros .d-flex:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: rgba(var(--primary-rgb), 0.1);
}

#nosotros .fa-lg {
    font-size: 1.25rem;
    margin-top: 4px;
    transition: all 0.3s ease;
}

#nosotros .d-flex:hover .fa-lg {
    transform: scale(1.2);
}

/* Sección de imágenes */
#nosotros .position-relative {
    border-radius: 12px;
    overflow: visible;
}

#nosotros .shadow-sm {
    transition: all 0.5s ease;
    border-radius: 8px;
    overflow: hidden;
}

#nosotros .shadow-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

#nosotros img {
    transition: all 0.8s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#nosotros .shadow-sm:hover img {
    transform: scale(1.05);
}

/* Tarjeta de años de experiencia */
#nosotros .bg-white {
    border-radius: 12px;
    transition: all 0.5s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

#nosotros .bg-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}

#nosotros .display-4 {
    font-weight: 600;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem !important;
}

/* Responsive */
@media (max-width: 991.98px) {
    #nosotros .pe-lg-5 {
        padding-right: 0 !important;
    }
    
    #nosotros .pt-5 {
        padding-top: 2rem !important;
    }
}

@media (max-width: 767.98px) {
    #nosotros h2 {
        font-size: 1.8rem;
    }
    
    #nosotros .lead {
        font-size: 1.05rem;
    }
    
    #nosotros .d-flex {
        padding: 1rem;
    }
    
    #nosotros .display-4 {
        font-size: 2.5rem;
    }
}
