/* Variables de diseño - Paleta profesional */
:root {
    --primary-color: #1a365d;
    --primary-dark: #153060;
    --secondary-color: #d69e2e;
    --accent-color: #2b6cb0;
    --dark-text: #2d3748;
    --light-text: #f7fafc;
    --background-light: #edf2f7;
    --background-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.08);
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset y tipografía */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--background-light);
    color: var(--dark-text);
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 95%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header / Nav */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--light-text);
    padding: 1rem 0;
    box-shadow: var(--shadow-subtle);
    border-bottom: 3px solid var(--secondary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    border-radius: 8px;
    transition: transform var(--transition-fast);
    border: 2px solid var(--secondary-color);
    padding: 3px;
    background: white;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--light-text);
}

.logo-text-container .location {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    color: var(--light-text);
}

nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--light-text);
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    z-index: 100;
    transition: all var(--transition-fast);
}

.nav-toggle:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-text);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
}

.nav-links a:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-links a.active,
.nav-links a:focus {
    background-color: var(--secondary-color);
    color: var(--dark-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    outline: none;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background-color: var(--light-text);
    border-radius: 2px;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    font-size: 2.8rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Hero general (no usado para slide individuos) */
.hero {
    background-color: var(--primary-dark);
    padding: 6rem 0;
    color: var(--light-text);
    text-align: center;
    position: relative;
}

/* Botones */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-text);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #c2851c;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--light-text);
    color: var(--light-text);
}

.btn-secondary:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Grids y tarjetas */
.features, .products {
    background-color: var(--background-card);
}

.features-grid, .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.card {
    background-color: var(--background-card);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card p {
    color: var(--dark-text);
    line-height: 1.6;
}

.product-card {
    padding: 0;
    overflow: hidden;
    text-align: left;
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--light-text);
    padding: 5rem 0 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    position: relative;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: all var(--transition-fast);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-4px);
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--secondary-color);
    width: 20px;
}

.contact-info a {
    color: var(--light-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.8;
}

/* Responsivo */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-dark);
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        z-index: 99;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-links a {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 0;
        justify-content: flex-start;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        transform: translateX(5px);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .logo-container {
        flex-direction: row;
        gap: 1rem;
    }

    .logo-img {
        height: 50px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .logo-text-container .location {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .features-grid, .product-grid, .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card, .product-card, .login-form {
        padding: 1.5rem;
    }
    
    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .owner-section, footer {
        padding: 3rem 0;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info, .social-links {
        justify-content: center;
    }
}

@media (min-width: 993px) {
    .nav-links {
        display: flex !important;
    }
}

/* Estilos para imágenes de productos */
.product-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.product-img i {
    font-size: 4rem;
    color: #6c757d;
}

/* --- Estilos del CARRUSEL personalizado (fade + animación de contenido) --- */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.hero-carousel .carousel-inner {
    position: relative;
    width: 100%;
    height: 80vh;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    padding: 2rem;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: var(--light-text);
    z-index: 10;
    max-width: 980px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(1.6rem, 4vw, 3rem);
    margin-bottom: 0.6rem;
    font-weight: 700;
    text-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Controles prev/next */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    border: none;
    color: white;
    padding: 0.6rem 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.05rem;
}

.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }

.carousel-prev i, .carousel-next i {
    font-size: 1.05rem;
}

/* Indicadores (dots) */
.carousel-indicators {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 40;
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.55);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.carousel-indicators .indicator.active {
    background: var(--secondary-color);
    transform: scale(1.15);
}

/* Mejora visual para móviles */
@media (max-width: 768px) {
    .hero-carousel .carousel-inner,
    .carousel-slide {
        height: 60vh;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
}
