/* ============================================
   GLOBAL STYLES - ODONTOCARE
   Todos los estilos del sistema
   ============================================ */

:root {
    --primary-color: #38b6ff;
    --secondary-color: #38b6ff;
    --success-color: #28a745;
    --error-color: #dc3545;
    --bg-color: #f8f9fa;
    --card-bg: white;
    --text-color: #333;
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
    --google-blue: #1a73e8;
    --google-hover: #174ea6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.header {
    background: #38b6ff;
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-links a:hover, 
.nav-links a.active {
    background: rgba(255,255,255,0.2);
    border-bottom: 2px solid white;
}

/* ============================================
   HERO SECTION (index.html)
   ============================================ */
.hero {
    background: #38b6ff;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ============================================
   FEATURES (index.html)
   ============================================ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3rem;
    color: #00C9FF;
    margin-bottom: 1rem;
}

.feature h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   SERVICES (index.html)
   ============================================ */
.services {
    background: white;
    margin: 2rem 0;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.services h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-card {
    padding: 1.5rem;
    background: #f0f9ff;
    border-radius: 10px;
    border-left: 4px solid #00C9FF;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: #e0f4ff;
    transform: translateX(5px);
}

.service-card h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.service-card i {
    color: #00C9FF;
    margin-right: 0.5rem;
}

.service-card p {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   CONTENEDORES
   ============================================ */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* ============================================
   FORMULARIOS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.text-muted {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #f1a846, #f1a846);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 201, 255, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #e0aa64, #e0aa64);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 201, 255, 0.4);
}

.btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.btn-secondary {
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 201, 255, 0.3);
}

.btn-secondary:hover {
    background: var(--secondary-color);
}

.btn-danger {
    background: var(--error-color);
}

.btn-danger:hover {
    background: #c82333;
}

/* ============================================
   ALERTAS
   ============================================ */
.alert {
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.alert.show {
    display: block;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-heading {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    text-align: center;
    padding: 2rem;
}

.hidden {
    display: none !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer p {
    margin: 0.5rem 0;
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 1rem 0;
}

/* ============================================
   PÁGINA PAGAR - CENTRADO
   ============================================ */
.payment-page-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 250px);
    padding: 2rem 20px;
}

.payment-page-centered .container {
    max-width: 550px;
    width: 100%;
}

.payment-page-centered .card {
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 15px;
    overflow: hidden;
}

.payment-header {
    background: #38b6ff;
    color: white;
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 15px 15px 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
}

.payment-header h2 {
    font-size: 1.8rem;
    margin: 0;
    color: white;
    border: none;
    padding: 0;
}

.payment-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.secure-badge {
    text-align: center;
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.cita-info {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.cita-info p {
    margin: 8px 0;
    font-size: 1rem;
}

.cita-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   ESTILOS PÁGINA CONFIRMACIÓN
   ============================================ */
.card-header {
    color: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin: -2rem -2rem 2rem -2rem;
}

.card-header.success {
    background: var(--success-color);
}

.card-header.error {
    background: var(--error-color);
}

.icono {
    font-size: 4rem;
    text-align: center;
    margin: 1rem 0;
}

.icono.success {
    color: var(--success-color);
}

.icono.error {
    color: var(--error-color);
}

.resumen-cita {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.resumen-cita h5 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.resumen-cita p {
    margin: 8px 0;
}

/* ============================================
   ESTILOS PÁGINA CONTACTO
   ============================================ */
.contact-hero {
    background: #38b6ff;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card h2,
.contact-form h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
    border-bottom: 3px solid #00C9FF;
    padding-bottom: 1rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f0f9ff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e0f4ff;
    transform: translateY(-3px);
}

.contact-icon {
    background: linear-gradient(135deg, #00C9FF, #0088CC);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-details p {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   MAPA CON DISEÑO CURVO Y ELEGANTE
   ============================================ */

.map-header {
    background: linear-gradient(135deg, #00C9FF 0%, #0088CC 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 -2px 20px rgba(0, 201, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.map-header::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 30px;
    background: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.map-header i {
    font-size: 1.3rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.map-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mapa responsive */
    .map-header {
        font-size: 1rem;
        padding: 1.5rem 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .map-wrapper iframe {
        height: 350px;
        border-radius: 12px;
    }
    
    /* Payment page */
    .payment-page-centered {
        min-height: auto;
        padding: 1rem 15px;
    }
    
    .payment-page-centered .container {
        max-width: 100%;
    }
    
    .payment-header {
        margin: -1.5rem -1.5rem 1rem -1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .payment-header h2 {
        font-size: 1.5rem;
    }
    
    .cita-info {
        padding: 1rem;
    }
    
    .payment-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .map-header {
        font-size: 0.9rem;
        padding: 1.2rem 0.8rem;
    }
    
    .map-header i {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }
    
    .map-wrapper {
        padding: 1rem;
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
}

/* ============================================
   MAPAS LADO A LADO CON DISEÑO CURVO
   ============================================ */
.maps-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}



.map-header {
    background: linear-gradient(135deg, #00C9FF 0%, #0088CC 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 -2px 20px rgba(0, 201, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.map-header::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 30px;
    background: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.map-header i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.map-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Tablet - apila verticalmente */
@media (max-width: 968px) {
    .maps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-wrapper iframe {
        height: 350px;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .map-header {
        font-size: 0.95rem;
        padding: 1.2rem 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .map-wrapper iframe {
        height: 300px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .maps-container {
        gap: 1.5rem;
    }
    
    .map-header {
        font-size: 0.9rem;
        padding: 1rem 0.8rem;
    }
    
    .map-header i {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }
    
    .map-wrapper {
        padding: 1rem;
    }
    
    .map-wrapper iframe {
        height: 280px;
    }
}

/* ============================================
   REDES SOCIALES - ICONOS EN FILA CON IMÁGENES
   ============================================ */
.social-icons-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-item:hover {
    transform: translateY(-5px);
}

.social-icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: white;
    border: 3px solid #f0f0f0;
}

.social-icon-circle:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
    border-color: #00BFFF;
}

.social-icon-circle img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.social-item span {
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    margin-top: 0.5rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .social-icons-row {
        gap: 1.5rem;
    }
    
    .social-icon-circle {
        width: 75px;
        height: 75px;
    }
    
    .social-icon-circle img {
        width: 40px;
        height: 40px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .social-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .social-icons-row {
        gap: 1rem;
    }
    
    .social-icon-circle {
        width: 65px;
        height: 65px;
    }
    
    .social-icon-circle img {
        width: 35px;
        height: 35px;
    }
    
    .social-item span {
        font-size: 0.85rem;
    }
}