:root {
    --primary: #3BB1DC;  /* Azul claro */
    --secondary: #2B2B2B; /* Gris oscuro */
    --accent: #ff6b00;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: var(--primary);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #3599c2;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent);
}

.btn-secondary:hover {
    background-color: #e05e00;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    display: block;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px; /* Altura fija para evitar cambios */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    height: 100%; /* Asegura que el contenedor ocupe toda la altura del header */
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 200px; /* Limitar el ancho máximo */
    object-fit: contain; /* Mantener proporciones */
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    /* background: linear-gradient(-45deg, #3BB1DC 0%, #2B2B2B 100%); */
    /* background-size: 400% 400%; */
    color: white;
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
   
    /* animation: gradientMove 15s ease infinite; */
}
.hero .container {
    position: relative;
    z-index: 1;
    min-height: 400px; /* Altura mínima para el hero */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    min-height: 120px; /* Altura fija para evitar desplazamientos */
    display: inline-block;
    flex-direction: column;
    justify-content: center;
    overflow: visible; /* Permitir que el texto se vea completo */
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light);
    padding: 2rem;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 16px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-text {
    color: var(--gray);
    font-size: 16px;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: var(--light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray);
    font-size: 14px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    font-size: 24px;
    color: var(--primary);
}

.contact-text h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--gray);
}

.contact-form {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px; /* Altura fija más pequeña para móviles */
    }
    
    .header-container {
        padding: 10px 0; /* Reducir padding para móviles */
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 70px; /* Ajustar al nuevo alto del header */
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 36px;
        min-height: 100px; /* Altura fija más pequeña para móviles */
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}
#typed-text {
    display: inline;
    min-width: 1ch;
    /* position: relative; */
}
#placeholder-text {
    visibility: hidden;
    /* position: absolute; */
    /* white-space: nowrap; */
}

.typed-cursor {
display: inline;
vertical-align: baseline;
animation: blink 0.7s infinite;
color: white; /* ajusta según tu diseño */
}

@keyframes blink {
0%, 50% { opacity: 1; }
51%, 100% { opacity: 0; }
}

/* Blog Styles */

/* Logo styles for all pages */
.logo {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 200px; /* Limitar el ancho máximo */
    object-fit: contain; /* Mantener proporciones */
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .logo img {
        height: 40px; /* Logo más pequeño en móviles */
        max-width: 150px;
    }
}

.blog-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 100px; /* para evitar que se tape con el header fijo */
  }
  
  .blog-sidebar {
    flex: 1 1 250px;
    background: white;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 6px;
    height: fit-content;
  }
  
  .blog-sidebar h3 {
    margin-bottom: 1rem;
    color: var(--primary);
  }
  
  .category-list li {
    margin-bottom: 8px;
  }
  
  .category-list a {
    color: var(--dark);
    transition: color 0.3s ease;
  }
  
  .category-list a:hover {
    color: var(--primary);
  }
  
  .blog-main-content {
    flex: 3 1 700px;
  }
  
  .blog-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
  }
  
  .blog-desc {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray);
  }
  
  .post-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  
  .post-title a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark);
  }
  
  .post-title a:hover {
    color: var(--primary);
  }
  
  .post-meta {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
  }
  
  .post-content p {
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.6;
  }
  
  .post-content h2, .post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
  }
  
  .post-content ul, .post-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
  }
  
  .post-content table th,
  .post-content table td {
    border: 1px solid #ccc;
    padding: 0.75rem;
    text-align: left;
  }
  
  .back-home {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
  }
  
  .back-home:hover {
    text-decoration: underline;
  }
  