/* Reseteo básico y fuentes */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Contenedor para centrar contenido */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    overflow: hidden;
}

/* Encabezado */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    margin-bottom: 2rem;
    overflow: hidden;
}

header h1 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.2s forwards;
}

header p {
     font-size: 1.1rem;
     opacity: 0;
     animation: fadeIn 1s ease-out 0.5s forwards;
}

/* Secciones principales */
main section {
    padding: 2rem 0;
    margin-bottom: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 2rem;
}

/* Grid de Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #eee;
    opacity: 0;
    animation: slideInUp 0.6s ease-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Retrasos escalonados */
.services-grid .service-card:nth-child(1) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.4s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.5s; }
.services-grid .service-card:nth-child(5) { animation-delay: 0.6s; }
.services-grid .service-card:nth-child(6) { animation-delay: 0.7s; }

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- ESTILOS PARA ICONOS FONT AWESOME --- */
.service-icon {
    font-size: 3rem;  /* Tamaño del ícono */
    color: #555; /* Color del ícono (puedes cambiarlo) */
    margin-bottom: 1rem;
    display: inline-block; /* Para que el margen funcione */
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}
/* --------------------------------------- */

.service-card h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Sección de Contacto */
#contacto {
    text-align: center;
}

.contact-buttons {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    color: #fff;
    position: relative;
}

.btn:hover {
     transform: scale(1.05);
}

/* --- ESTILOS PARA ICONOS FONT AWESOME EN BOTONES --- */
.btn-icon {
    margin-right: 10px; /* Espacio entre icono y texto */
    font-size: 1.2rem; /* Ajusta tamaño si es necesario */
    /* No se necesita width/height */
}
/* ------------------------------------------------ */

.whatsapp-btn {
    background-color: #25D366;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background-color: #1DAE50;
    animation: none;
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-btn:hover {
     opacity: 0.9;
}

/* Pie de página */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* --- Definiciones de Animaciones --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  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); }
}

/* --- Media Queries para Responsividad --- */
@media (max-width: 768px) {
    header h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .services-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .contact-buttons { flex-direction: column; align-items: center; }
    .btn { width: 80%; justify-content: center; margin-bottom: 0.5rem; }
    .service-icon { font-size: 2.5rem; } /* Ajustar tamaño icono en móvil */
}

@media (max-width: 480px) {
     header h1 { font-size: 1.8rem; }
     h2 { font-size: 1.5rem; }
    .service-card { padding: 1rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; width: 90%; }
    .service-icon { font-size: 2.2rem; } /* Ajustar tamaño icono en móvil pequeño */
    .btn-icon { font-size: 1rem; margin-right: 8px;} /* Ajustar icono botón en móvil */
}

.cotizador-btn {
    background-color: #007bff;
}

.cotizador-btn:hover {
    background-color: #0056b3;
}
