/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #003d82 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hero .logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    color: #333;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
    background: linear-gradient(45deg, #ff8c00, #ffc107);
}

/* Sections */
section {
    padding: 60px 0;
}

.que-aseguramos h2,
.por-que-mm h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #007bff;
}

.productos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.producto {
    flex: 1 1 250px;
    margin: 20px;
    padding: 60px 20px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.producto::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    opacity: 0.1;
    z-index: 0;
}



.producto:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.producto h3 {
    margin-bottom: 15px;
    color: #007bff;
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
}

.producto p {
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.por-que-mm ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.por-que-mm li {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,123,255,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar .logo {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.navbar .logo:hover {
    transform: scale(1.05);
}

.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.navbar li {
    position: relative;
}

.navbar a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.navbar a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,123,255,0.1), transparent);
    transition: left 0.5s ease;
}

.navbar a:hover::before {
    left: 100%;
}

.navbar a:hover {
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
}

/* Mobile menu button */
.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.navbar-toggle:hover {
    background-color: rgba(0,123,255,0.1);
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile menu animation */
.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer p {
    margin-bottom: 10px;
}

.social-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.whatsapp-btn {
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
}

.whatsapp-btn:hover {
    background: linear-gradient(45deg, #128c7e, #075e54);
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.instagram-btn:hover {
    background: linear-gradient(45deg, #bc1888, #cc2366, #dc2743, #e6683c, #f09433);
}

.social-icon {
    font-size: 1.2rem;
}

/* Testimonios */
.testimonios {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.testimonios h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #007bff;
}

.testimonio-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.testimonio {
    flex: 1 1 300px;
    margin: 20px;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.testimonio::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: #007bff;
    opacity: 0.2;
    font-family: serif;
}

.testimonio:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.testimonio p {
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.testimonio cite {
    font-weight: bold;
    color: #007bff;
    position: relative;
    z-index: 1;
}

/* FAQ */
.faq {
    padding: 60px 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #007bff;
}

.faq-item {
    max-width: 800px;
    margin: 0 auto 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-item h3 {
    margin-bottom: 10px;
    color: #007bff;
}

/* Contacto */
.contacto {
    background-color: #007bff;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.contacto h2 {
    margin-bottom: 20px;
}

.contacto p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contacto-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.contacto-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.contacto-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contacto-info a {
    color: #ffc107;
    text-decoration: none;
    font-weight: bold;
}

.contacto-info a:hover {
    text-decoration: underline;
}

.map-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 90%;
    max-width: 550px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.modal h2 {
    margin-bottom: 20px;
    color: #007bff;
}

/* Form */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-column {
    flex: 1;
}

.form-full {
    margin-top: 20px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input,
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

form input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.submit-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #0056b3;
}

/* Chat Widget */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#chat-button {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#chat-button:hover {
    background: linear-gradient(45deg, #0056b3, #007bff);
    transform: scale(1.1);
}

#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

#chat-header {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-radius: 20px 20px 0 0;
}

#chat-header-buttons {
    display: flex;
    gap: 10px;
}

#chat-minimize,
#chat-close {
    cursor: pointer;
    font-size: 18px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    pointer-events: auto;
}

#chat-minimize:hover,
#chat-close:hover {
    background: rgba(255,255,255,0.3);
}

#chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    background-image: 
        radial-gradient(circle at 20px 20px, rgba(0,123,255,0.1) 0%, transparent 20%),
        radial-gradient(circle at 80px 80px, rgba(0,123,255,0.05) 0%, transparent 20%);
    background-size: 100px 100px;
}

.message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 20px;
    max-width: 80%;
    line-height: 1.4;
    font-size: 14px;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background: white;
    align-self: flex-start;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-message {
    background: #007bff;
    color: white;
    align-self: flex-end;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

#chat-input {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: white;
    border-radius: 0 0 20px 20px;
}

.question-button {
    display: block;
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s;
}

.question-button:hover {
    background: #0056b3;
}

.action-button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-top: 8px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.action-button:hover {
    background: #0056b3;
}

.hidden {
    display: none !important;
}
