* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

 .logo {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}

 .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

 .nav-menu a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

 .nav-menu a:hover {
    color: #fbbf24;
    transform: translateY(-2px);
}

 .nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #fbbf24;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

 .nav-menu a:hover::after {
    width: 100%;
}

 /* Main Content */
.main-content {
    margin-top: 80px;
}

 .section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

 /* Inicio Section */
.inicio {
    background-image: url('../img/fondo.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 200px 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    position: relative;
    overflow: hidden;
}

 .inicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

 .container {
    position: relative;
    z-index: 2;
}

 .inicio h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out;
}

 .inicio p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.3s both;
}

 .cta-button {
    display: inline-block;
    background: #fbbf24;
    color: #333;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: slideInUp 1s ease-out 0.6s both;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

 .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.4);
    background: #f59e0b;
}

 @keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

 /* Presentación Section - CORREGIDO */
.presentacion {
    background: #f8f9fa;
}

 .presentacion-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

 .presentacion-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

 .presentacion-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

 .presentacion-image {
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    /* Removido el background gradient para permitir la imagen */
}

/* Nuevo estilo específico para la imagen dentro del contenedor */
.presentacion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.presentacion-image:hover img {
    transform: scale(1.05);
}

/* Si no hay imagen, mostrar el placeholder con gradiente */
.presentacion-image:empty {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    font-size: 1.2rem;
}

.presentacion-image:empty::after {
    content: 'Imagen de presentación';
}

 /* Servicios Section */
.servicios h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.servicio-imagen {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.servicio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.servicio-imagen:hover img {
    transform: scale(1.1);
}

 /* Fallback para servicios sin imagen */
.servicio-imagen:empty {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.servicio-imagen:empty::after {
    content: '🔮';
}

.servicio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.servicio-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex: 1;
}

.servicio-button {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: auto;
    border: 2px solid transparent;
}

.servicio-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
    color: white;
    background: #fbbf24;
    border: 2px solid #dc2626;
}

 /* Testimonios Section */
.testimonios {
    background: #f8f9fa;
}

.testimonios h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonio-card {
    background: white;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.testimonio-card::before {
    content: none; /* Removemos las comillas ya que será una imagen */
}

.testimonio-imagen {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.testimonio-imagen:hover img {
    transform: scale(1.05);
}

 /* Fallback para testimonios sin imagen */
.testimonio-imagen:empty {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
}

.testimonio-imagen:empty::after {
    content: 'Captura de testimonio';
}

.testimonio-descripcion {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

 /* Políticas Section */
.politicas h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.politicas-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.politica-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.politica-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.politica-item h3 {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.politica-item p {
    color: #666;
    line-height: 1.6;
}

 /* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer p {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fbbf24;
}

 /* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 25px rgba(37, 211, 102, 0.6);
    color: #FFF;
}

@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);
    }
}

 /* Animation for cards on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

 /* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

     .inicio h1 {
        font-size: 2.5rem;
    }

     .inicio p {
        font-size: 1.1rem;
    }

     .presentacion-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

     .presentacion-text h2 {
        font-size: 2rem;
    }

     .section {
        padding: 60px 1rem;
    }

     .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

 /* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

 /* Estilos específicos para la página de políticas */
.politicas-hero {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    text-align: center;
    padding: 120px 2rem 80px 2rem;
    margin-top: 80px;
}

.politicas-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out;
}

.politicas-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.3s both;
}

.politicas-detalladas {
    padding: 80px 0;
    background: #f8f9fa;
}

.politicas-detalladas .politicas-content {
    max-width: 900px;
    margin: 0 auto;
}

.politicas-detalladas .politica-item {
    background: white;
    margin-bottom: 3rem;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom: none;
}

.politicas-detalladas .politica-item h2 {
    color: #dc2626;
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid #dc2626;
    padding-bottom: 0.5rem;
}

.politica-texto h3 {
    color: #333;
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.politica-texto p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.politica-texto ul {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.politica-texto ul li {
    margin-bottom: 0.5rem;
}

.contacto-politicas {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    text-align: center;
    padding: 80px 2rem;
}

.contacto-politicas h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contacto-politicas p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.nav-menu .active {
    color: #fbbf24 !important;
    font-weight: bold;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .politicas-hero h1 {
        font-size: 2.5rem;
    }
    
    .politicas-detalladas .politica-item {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .politicas-detalladas .politica-item h2 {
        font-size: 1.7rem;
    }
}

#nf{
    color: white;
    text-decoration: none;
}