/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f88617;
    --primary-dark: #d9720c;
    --primary-light: #ff9c40;
    --secondary-color: #2d2c71;
    --secondary-light: #3d3c9e;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --gray-light: #f1f3f5;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Utilitários */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--white);
    padding: 25px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.main-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: var(--white);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.logo-text {
    text-align: center;
}

.logo {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.dot {
    color: var(--primary-color);
}

header p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    font-weight: 300;
}

/* Main Content */
main {
    flex: 1;
    padding: 40px 20px;
}

.intro {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-light);
}

.intro h1 {
    font-size: 2.4rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.intro h1 i {
    color: var(--primary-color);
    font-size: 2.2rem;
}

.intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de Serviços en 2 columnas */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

/* Responsive: En pantallas pequeñas, cambiar a 1 columna */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .logo {
        font-size: 2.2rem;
    }
    
    .main-logo {
        width: 70px;
        height: 70px;
    }
}

/* Card do Serviço */
.card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--secondary-color);
    height: 600px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--primary-color);
}

.card-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: none;
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.3rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-color);
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3 i {
    color: var(--primary-color);
}

.card p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    flex: 1;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-light));
    color: var(--white);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: auto;
    letter-spacing: 0.3px;
}

.btn:hover {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(248, 134, 23, 0.3);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 35px 0;
    margin-top: 70px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 300px;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: var(--white);
    border-radius: 10px;
    padding: 8px;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-brand span {
    color: var(--primary-color);
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

.footer-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.footer-info i {
    color: var(--primary-color);
    width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

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

/* Loading state */
.loading {
    text-align: center;
    grid-column: 1 / -1;
    padding: 60px 20px;
}

.loading i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.loading p {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Mensaje de error */
.error-message {
    text-align: center;
    grid-column: 1 / -1;
    background-color: #fff5f5;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 40px;
    border-radius: 12px;
    margin-top: 20px;
}

.error-message i {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #dc2626;
}

.error-message p {
    font-size: 1.2rem;
}

/* Badge para novedades */
.new-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}
