/* Reset y Variables */
:root {
    --primary-color: #0077be;
    --secondary-color: #00a8e8;
    --accent-color: #00c9ff;
    --dark-color: #1a1a2e;
    --light-color: #ffffff;
    --gray-color: #6c757d;
    --light-gray: #f8f9fa;
    --success-color: #28a745;
    --gradient-primary: linear-gradient(135deg, #0077be 0%, #00c9ff 100%);
    --gradient-secondary: linear-gradient(135deg, #00a8e8 0%, #0077be 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-contact {
    background: var(--gradient-primary);
    color: var(--light-color) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    padding-top: 80px;
    overflow: hidden;
}

.hero::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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,133.3C672,117,768,107,864,122.7C960,139,1056,181,1152,186.7C1248,192,1344,160,1392,144L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    text-align: center;
    color: var(--light-color);
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--light-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.btn-secondary:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
}

/* Sobre Nosotros Section */
.sobre-nosotros {
    background: var(--light-color);
    padding: 5rem 0;
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.sobre-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sobre-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.sobre-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sobre-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--dark-color);
}

.sobre-intro {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.8;
}

.sobre-text p {
    margin-bottom: 1.2rem;
}

.sobre-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.sobre-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    background: var(--gradient-primary);
    padding: 1.5rem 1rem;
    border-radius: 15px;
    text-align: center;
    color: var(--light-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* Proceso Section */
.proceso {
    background: var(--light-gray);
}

.proceso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.proceso-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.proceso-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.proceso-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.proceso-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Beneficios Section */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.beneficio-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.beneficio-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.beneficio-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.beneficio-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Productos Section */
.productos {
    background: var(--light-gray);
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.producto-card {
    background: var(--light-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.producto-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.producto-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.producto-card.featured:hover {
    transform: translateY(-10px) scale(1.07);
}

.producto-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.producto-image {
    margin-bottom: 1.5rem;
}

.producto-placeholder {
    font-size: 4rem;
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.producto-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.producto-desc {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.producto-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.producto-features li {
    padding: 0.5rem 0;
    color: var(--dark-color);
}

.btn-product {
    background: var(--gradient-primary);
    color: var(--light-color);
    width: 100%;
    text-align: center;
}

.btn-product:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Testimonios Section */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonio-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonio-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonio-stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffc107;
}

.testimonio-text {
    font-style: italic;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.author-location {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Contacto Section */
.contacto {
    background: var(--light-gray);
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-top: 3rem;
}

.contacto-map {
    background: var(--light-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    min-height: 500px;
}

.contacto-map iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.map-link {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.map-link a {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--light-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.map-link a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,119,190,0.4);
}

.contacto-info {
    background: var(--gradient-primary);
    color: var(--light-color);
    padding: 2rem;
    border-radius: 20px;
}

.contacto-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 1.5rem;
}

.info-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    opacity: 0.9;
    line-height: 1.6;
}

.contacto-form {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--light-color);
    font-size: 1.1rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-column p {
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--light-color);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .contacto-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contacto-map {
        min-height: 400px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .sobre-content {
        grid-template-columns: 1fr;
    }
    
    .sobre-image img {
        max-width: 300px;
    }
    
    .sobre-stats {
        grid-template-columns: 1fr;
    }
    
    .sobre-text {
        font-size: 1rem;
    }
    
    .sobre-intro {
        font-size: 1.1rem;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
    }
    
    .producto-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}
