/* ========================================
   ESTILOS GENERALES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ========================================
   NAVEGACIÓN
   ======================================== */
.navbar-custom {
    background: linear-gradient(135deg, #e2725e 0%, #d85a45 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-custom .nav-link {
    color: white !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-custom .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* ========================================
   HERO SECTION Y CARRUSEL
   ======================================== */
.hero-section {
    position: relative;
}

.carousel-item {
    height: 600px;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.carousel-caption p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   PAGE HERO
   ======================================== */
.page-hero {
    background: linear-gradient(135deg, #e2725e 0%, #d85a45 100%);
    padding: 100px 0 60px;
    text-align: center;
    margin-bottom: 0;
}

/* ========================================
   CARDS
   ======================================== */
.hover-card {
    transition: all 0.3s ease;
    border: none;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e2725e 0%, #d85a45 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
}

.product-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.product-card img {
    height: 250px;
    object-fit: cover;
}

/* ========================================
   PORTAFOLIO
   ======================================== */
.portfolio-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.portfolio-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.filter-btn {
    margin: 0.5rem;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #e2725e;
    border-color: #e2725e;
    color: white;
}

.portfolio-item {
    transition: all 0.3s ease;
}

/* ========================================
   BLOG
   ======================================== */
.blog-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.blog-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.blog-card img {
    max-height: 250px;
    object-fit: cover;
}

/* ========================================
   ESTADÍSTICAS
   ======================================== */
.stat-box {
    padding: 2rem;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: scale(1.05);
}

.stat-box h3 {
    margin-bottom: 0.5rem;
}

/* ========================================
   ACORDEÓN
   ======================================== */
.accordion-button {
    background-color: #f8f9fa;
    color: #333;
}

.accordion-button:not(.collapsed) {
    background-color: #e2725e;
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(226, 114, 94, 0.25);
}

/* ========================================
   FORMULARIOS
   ======================================== */
.form-control:focus,
.form-select:focus {
    border-color: #e2725e;
    box-shadow: 0 0 0 0.25rem rgba(226, 114, 94, 0.25);
}

.btn-primary {
    background-color: #e2725e;
    border-color: #e2725e;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #d85a45;
    border-color: #d85a45;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(226, 114, 94, 0.3);
}

.btn-outline-primary {
    color: #e2725e;
    border-color: #e2725e;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #e2725e;
    border-color: #e2725e;
    color: white;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    margin-top: 3rem;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #e2725e !important;
}

/* ========================================
   UTILIDADES
   ======================================== */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.text-primary {
    color: #e2725e !important;
}

.bg-primary {
    background-color: #e2725e !important;
}

.border-primary {
    border-color: #e2725e !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablets */
@media (max-width: 991px) {
    .carousel-item {
        height: 500px;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .navbar-collapse {
        background-color: rgba(226, 114, 94, 0.95);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-caption .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .page-hero {
        padding: 60px 0 40px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .stat-box h3 {
        font-size: 2rem;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .icon-circle svg {
        width: 35px;
        height: 35px;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption h1 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
        display: none; /* Ocultar en pantallas muy pequeñas */
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin: 0.25rem;
    }
    
    .product-card img,
    .portfolio-card img,
    .blog-card img {
        height: 200px;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-in-out;
}

/* ========================================
   MEJORAS DE ACCESIBILIDAD
   ======================================== */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #e2725e;
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .navbar,
    footer,
    .btn,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none !important;
    }
}