/* ===========================================
   HOGARTECH - ESTILOS PRINCIPALES
   =========================================== */

/* Reset y Configuración Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Variables CSS */
:root {
    --primary-green: #25D366;
    --secondary-orange: #FF6B35;
    --accent-blue: #2E86AB;
    --dark-text: #333333;
    --light-gray: #f8f9fa;
}

/* ===========================================
   NAVEGACIÓN
   =========================================== */
.navbar-custom {
    background-color: rgba(46, 134, 171, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    white-space: nowrap;
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
    margin-left: 1rem;
    margin-right: 1rem;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-green) !important;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero-section {
    background: linear-gradient(135deg, #2E86AB, #FF6B35);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 90px;
    padding-bottom: 40px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    word-break: break-word;
}

.hero-content p,
.hero-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.btn-whatsapp {
    background-color: #25D366;
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(37,211,102,0.15);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: #22c55e;
    transform: translateY(-3px) scale(1.05);
    color: white;
    text-decoration: none;
    outline: none;
}

/* ===========================================
   CARRUSEL DE SERVICIOS
   =========================================== */
.main-content {
    padding: 20px;
}

.carousel-container {
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    margin: 0 auto 40px auto;
    border-radius: 10px;
    background: transparent;
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: moveRight 12s linear infinite;
}

.card {
    flex: 0 0 auto;
    width: 320px;
    height: 450px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
}

.card-text {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.4;
    color: #0303f1;
    font-weight: 500;
}

@keyframes moveRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1080px); }
}

/* ===========================================
   SERVICIOS
   =========================================== */
.services-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.13);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #2E86AB, #FF6B35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    color: #2E86AB;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.3rem;
    word-break: break-word;
}

.service-card p {
    font-size: 1rem;
    color: #555;
}

/* Pre-animación para service cards */
.service-card.pre-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   ESTADÍSTICAS
   =========================================== */
.stats-section {
    background: white;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 30px 15px;
    font-family: 'Poppins', sans-serif;
}

.stat-number,
.suffix {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6600;
    line-height: 1;
}

.stat-number {
    display: inline-block;
}

.suffix {
    margin-left: 2px;
}

.stat-label {
    color: #6c757d;
    font-size: 1.1rem;
}

/* ===========================================
   CARACTERÍSTICAS
   =========================================== */
.features-section {
    padding: 80px 0;
    background: white;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px) scale(1.02);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ele_perso {
    margin-left: 2%;
}

/* ===========================================
   MARCAS (CARRUSEL)
   =========================================== */
.brands-carousel-section {
    overflow: hidden;
    background: #f8f9fa;
    padding: 40px 0;
}

.brands-slider-bidirectional {
    display: flex;
    width: max-content;
    gap: 18px;
    align-items: center;
}

.brands-slider-bidirectional .brand-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(46,134,171,0.07);
    min-width: 140px;
    max-width: 160px;
    padding: 18px 10px;
    margin: 0 2px;
    text-align: center;
    flex-shrink: 0;
    transition: box-shadow 0.2s;
}

.brands-slider-bidirectional .brand-card:hover {
    box-shadow: 0 6px 24px rgba(46,134,171,0.13);
}

.brands-slider-bidirectional .brand-card img {
    width: auto;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 8px auto;
    display: block;
    background: transparent;
}

.brand-name {
    font-size: 1rem;
    color: #2E86AB;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* ===========================================
   COMENTARIOS
   =========================================== */
.carousel-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    background: #f4f1f8;
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    gap: 16px;
}

.comment-card {
    min-width: 250px;
    max-width: 300px;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
}

.comment-card .stars {
    color: #f4a261;
    font-size: 18px;
}

.btn_perso {
    margin-top: 15px;
    margin-bottom: 15px;
}

.centrador {
    display: flex;
    justify-content: center;
}

/* ===========================================
   CONTACTO
   =========================================== */
.contact-section {
    background: linear-gradient(135deg, #2E86AB, #FF6B35);
    color: white;
    padding: 80px 0;
}

.contact-info {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    width: 50px;
    aspect-ratio: 1 / 1;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tel_perso a {
    color: white;
    text-decoration: none;
}

.tel_perso {
    color: white;
    text-decoration: none;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer-section {
    background-color: #343a40;
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-section h5 {
    margin-bottom: 20px;
    margin-top: 10px;
    color: #25D366;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #25D366;
}

/* ===========================================
   BOTONES FLOTANTES
   =========================================== */

/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
    box-shadow: 0 2px 10px rgba(37,211,102,0.15);
}

.whatsapp-float:hover {
    background-color: #22c55e;
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Botón flotante de llamada */
.floating-call {
    position: fixed;
    bottom: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
    animation: pulse 2s infinite;
    transition: transform 0.2s;
}

.floating-call:hover {
    transform: scale(1.1);
}

.floating-call img {
    width: 25px;
    height: 25px;
    filter: brightness(0) saturate(100%) invert(62%) sepia(88%) saturate(7910%) hue-rotate(92deg) brightness(105%) contrast(101%);
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
        box-shadow: 0 0 0 rgba(0,255,0,0.5); 
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 15px rgba(0,255,0,0.7); 
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 rgba(0,255,0,0.5); 
    }
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 2.7rem;
    }
    .service-card {
        padding: 30px 18px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: 60vh;
        padding-top: 70px;
        padding-bottom: 30px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .service-card {
        padding: 25px 10px;
    }
    .feature-item {
        padding: 18px;
    }
    .footer-section {
        padding: 35px 0 15px;
    }
    .btn-whatsapp {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding-top: 60px;
        padding-bottom: 20px;
    }
    .hero-content h1 {
        font-size: 1.7rem;
    }
    .hero-content p,
    .hero-content h4 {
        font-size: 1rem;
        margin-inline: 10px;
    }
    .btn-whatsapp {
        padding: 12px 18px;
        font-size: 1rem;
        margin-bottom: 15px;
    }
    .service-card {
        padding: 18px 5px;
        margin-bottom: 25px;
    }
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .footer-section {
        padding: 20px 0 10px;
    }
    .navbar-nav .nav-link {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 130px;
        padding-bottom: 10px;
    }
    .hero-content p {
        margin-inline: 20px;
    }
    .hero-content h1 {
        font-size: 1.2rem;
    }
    .hero-content {
        text-align: center;
    }
    .btn-whatsapp {
        padding: 10px 10px;
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    .service-card {
        padding: 10px 2px;
    }
    .feature-icon,
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        bottom: 8px;
        right: 8px;
    }
    .footer-section {
        padding-left: 50px;
    }
    .stat-item {
        padding: 10px 2px;
    }
    .stat-number {
        font-size: 1.2rem;
    }
    .stat-label {
        font-size: 0.9rem;
    }
    .contact-info {
        padding: 12px;
    }
    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .navbar-brand {
        font-size: 1rem;
        padding-right: 0;
        padding-left: 5%;
    }
    .navbar-toggler {
        margin-right: 0;
    }
    
    .container,
    .container-fluid,
    .navbar-custom {
        max-width: 100vw !important;
        width: 100vw !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .ele_perso {
        margin-left: 5%;
    }
}

@media (max-width: 420px) {
    .container,
    .container-fluid,
    .navbar-custom {
        max-width: 100vw !important;
        width: 100vw !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .hero-section {
        padding-top: 145px;
        padding-bottom: 5px;
    }
    .hero-content h1 {
        font-size: 1rem;
    }
    .hero-content p,
    .hero-content h4 {
        font-size: 0.9rem;
        margin-inline: 15px;
    }
    .btn-whatsapp {
        padding: 8px 6px;
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    .service-card {
        padding: 6px 1px;
    }
    .feature-icon,
    .service-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        bottom: 4px;
        right: 4px;
    }
    .footer-section {
        padding: 5px 0 2px;
        padding-left: 5%;
    }
    .stat-item {
        padding: 5px 1px;
    }
    .stat-number {
        font-size: 1rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    .contact-info {
        padding: 6px;
    }
    .contact-item i {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
    .navbar-brand {
        font-size: 1.1rem;
    }
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        margin-left: 0.2rem;
        margin-right: 0.2rem;
    }
}

/* ===========================================
   UTILIDADES
   =========================================== */
a, button {
    touch-action: manipulation;
    outline: none;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}